mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2026-06-19 05:12:38 +02:00
feat: creating a webhook will no return it's idenity
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ def webhooks():
|
||||
posted = WebHookPaths(username=user, path=secrets.token_urlsafe(20))
|
||||
db.session.merge(posted)
|
||||
db.session.commit()
|
||||
return ("", 204)
|
||||
return flask.jsonify({ "webhook-identity": posted.path})
|
||||
elif flask.request.method == "GET":
|
||||
webhooks = db.session.query(WebHookPaths).filter(WebHookPaths.username==user).all()
|
||||
if not webhooks:
|
||||
|
||||
Reference in New Issue
Block a user