diff options
Diffstat (limited to 'apioforum/thread.py')
-rw-r--r-- | apioforum/thread.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apioforum/thread.py b/apioforum/thread.py index f22ca85..61066a1 100644 --- a/apioforum/thread.py +++ b/apioforum/thread.py @@ -56,4 +56,5 @@ def delete_post(thread_id, post_id): @bp.route("/<int:thread_id>/edit_post/<int:post_id>",methods=["GET","POST"]) def edit_post(thread_id, post_id): - return f"todo (t: {thread_id}, p: {post_id})" + if request.method == "GET": + return render_templace("edit_post.html") |