mirror of
https://github.com/FAUSheppy/simple-webhook-handler
synced 2025-12-06 12:21:34 +01:00
fix missing flask module syntax
This commit is contained in:
@@ -7,10 +7,10 @@ app = flask.Flask("webhook-listener")
|
|||||||
##### FRONTEND PATHS ########
|
##### FRONTEND PATHS ########
|
||||||
@app.route('/', methods=["GET","POST"])
|
@app.route('/', methods=["GET","POST"])
|
||||||
def rootPage():
|
def rootPage():
|
||||||
if request.method == "GET":
|
if flask.request.method == "GET":
|
||||||
return "Webhook Listener ist running"
|
return "Webhook Listener ist running"
|
||||||
else:
|
else:
|
||||||
data = json.loads(request.body)
|
data = json.loads(flask.request.body)
|
||||||
print(json.dumps(data))
|
print(json.dumps(data))
|
||||||
|
|
||||||
def readExecutionConfig():
|
def readExecutionConfig():
|
||||||
|
|||||||
Reference in New Issue
Block a user