webhook should be on POST

This commit is contained in:
Andrea Mannocci 2020-07-07 18:13:13 +02:00
parent 7c841d6996
commit 6af1a29ebb
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def query_get(q='*', s:int=0, i=None):
log.error(e)
@app.get('/api/webhook')
@app.post('/api/webhook')
def on_git_push():
log.info('Executing webhook for Gitea')
return 'executed'