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: