From be96b02dabfd030c51e215a0c68f5b7c19b75bfe Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 23 Jul 2021 21:35:02 +0200 Subject: [PATCH] sneed --- drama/routes/comments.py | 2 +- drama/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drama/routes/comments.py b/drama/routes/comments.py index 4ed6aec16..a3aa61388 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -21,7 +21,7 @@ beams_client = PushNotifications( secret_key=PUSHER_KEY, ) -@app.route("/banaward/comment/", methods=["POST"]) +@app.route("/banaward/comment/", methods=["POST", "GET"]) @auth_required def banawardcomment(comment_id, v): diff --git a/drama/routes/posts.py b/drama/routes/posts.py index 302a563a8..3aa48515b 100644 --- a/drama/routes/posts.py +++ b/drama/routes/posts.py @@ -45,7 +45,7 @@ def resize(): print(f"2 {u.profileurl}") -@app.route("/banaward/post/", methods=["POST"]) +@app.route("/banaward/post/", methods=["POST", "GET"]) @auth_required def postbanaward(post_id, v):