hook
This commit is contained in:
2
main.py
2
main.py
@@ -46,7 +46,7 @@ def home():
|
|||||||
return "This is a silly web util that converts the Ghost webhook payloads to Discord payloads"
|
return "This is a silly web util that converts the Ghost webhook payloads to Discord payloads"
|
||||||
|
|
||||||
|
|
||||||
@app.route("/:uuid", methods=["POST"])
|
@app.route("/hook/:uuid", methods=["POST"])
|
||||||
def convert(uuid):
|
def convert(uuid):
|
||||||
webhook = UUID_TO_WEBHOOK_LOOKUP.get(uuid)
|
webhook = UUID_TO_WEBHOOK_LOOKUP.get(uuid)
|
||||||
ghost_payload = request.get_json()
|
ghost_payload = request.get_json()
|
||||||
|
|||||||
Reference in New Issue
Block a user