diff options
Diffstat (limited to 'apioforum/thread.py')
-rw-r--r-- | apioforum/thread.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apioforum/thread.py b/apioforum/thread.py index 630cb33..f520d8e 100644 --- a/apioforum/thread.py +++ b/apioforum/thread.py @@ -105,4 +105,12 @@ def edit_post(post_id): flash(err) return render_template("edit_post.html",post=post) +@bp.route("/<int:thread_id>/config",methods=["GET","POST"]) +def config_thread(thread_id): + db = get_db() + thread = db.execute("select * from threads where id = ?",(thread_id,)).fetchone() + if request.method == "POST": + abort(418) + return render_template("config_thread.html", thread=thread) + |