From 4370b4f12406b7a090f98a93e273133968e70e91 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 31 Jul 2021 08:46:42 +0200 Subject: [PATCH] fdfdfd --- drama/routes/admin.py | 2 +- drama/routes/comments.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drama/routes/admin.py b/drama/routes/admin.py index 9dc40ce83..2660df570 100644 --- a/drama/routes/admin.py +++ b/drama/routes/admin.py @@ -1028,7 +1028,7 @@ def admin_nunuke_user(v): return redirect(user.url) -@app.route("/user_stat_data", methods=['GET']) +@app.get("/user_stat_data") @admin_level_required(2) @cache.memoize(timeout=60) def user_stat_data(v): diff --git a/drama/routes/comments.py b/drama/routes/comments.py index ee58b7e0b..91257e756 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -158,7 +158,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None): else: return post.rendered_page(v=v, sort=sort, comment=top_comment, comment_info=comment_info) -@app.post("/comment") +@app.post("/api/comment") @limiter.limit("6/minute") @is_not_banned @validate_formkey