mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-11-29 21:48:45 +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>"
|
return "<h1>Index page</h1>"
|
||||||
|
|
||||||
|
|
||||||
@app.route(WEBHOOK_URL_PATH, methods=["POST"])
|
@app.route(WEBHOOK_URL_PATH, methods=["GET"])
|
||||||
def webhook():
|
def webhook():
|
||||||
if flask.request.headers.get("content-type") == "application/json":
|
if flask.request.headers.get("content-type") == "application/json":
|
||||||
json_string = flask.request.get_data().decode("utf-8")
|
json_string = flask.request.get_data().decode("utf-8")
|
||||||
|
|||||||
Reference in New Issue
Block a user