From 671f1c2ec611a87ba31e8fc8cc3ffd941ea27718 Mon Sep 17 00:00:00 2001 From: David Hoppenbrouwers Date: Sat, 8 Oct 2022 14:30:41 +0200 Subject: [PATCH] Fix missing trailing / --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4f8ac59..cfc029a 100644 --- a/main.py +++ b/main.py @@ -201,7 +201,7 @@ def delete_comment(comment_id): # TODO return 403, maybe? return redirect(url_for('index')) -@app.route('/thread//edit', methods = ['GET', 'POST']) +@app.route('/thread//edit/', methods = ['GET', 'POST']) def edit_thread(thread_id): user_id = session.get('user_id') if user_id is None: @@ -229,7 +229,7 @@ def edit_thread(thread_id): text = text, ) -@app.route('/comment//edit', methods = ['GET', 'POST']) +@app.route('/comment//edit/', methods = ['GET', 'POST']) def edit_comment(comment_id): user_id = session.get('user_id') if user_id is None: