mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-10-25 22:02:17 +00:00
changed request method to GET
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ def index():
|
||||
return "<h1>Index page</h1>"
|
||||
|
||||
|
||||
@app.route(WEBHOOK_URL_PATH, methods=["POST"])
|
||||
@app.route(WEBHOOK_URL_PATH, methods=["GET"])
|
||||
def webhook():
|
||||
if flask.request.headers.get("content-type") == "application/json":
|
||||
json_string = flask.request.get_data().decode("utf-8")
|
||||
|
||||
Reference in New Issue
Block a user