[mod] add a dummy page for /github GET to avoid stupid errors in logs

This commit is contained in:
Laurent Peuch 2019-02-07 14:11:57 +01:00
parent 68e7a3cba6
commit 12817ea21b

View file

@ -39,6 +39,11 @@ def notify(message, repository="dev"):
subprocess.check_call(["python", "./to_room.py", gitbot_password, message, chan])
@app.route("/github", methods=['GET'])
async def github_get(request):
return text("You aren't supposed to go on this page using a browser, it's for webhooks push instead.")
@app.route("/github", methods=['POST'])
async def github(request):
# Only SHA1 is supported