summaryrefslogtreecommitdiffhomepage
path: root/apioforum/thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'apioforum/thread.py')
-rw-r--r--apioforum/thread.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/apioforum/thread.py b/apioforum/thread.py
index 638ff7f..f22ca85 100644
--- a/apioforum/thread.py
+++ b/apioforum/thread.py
@@ -49,3 +49,11 @@ def create_post(thread_id):
db.commit()
flash("post posted postfully")
return redirect(url_for('thread.view_thread',thread_id=thread_id))
+
+@bp.route("/<int:thread_id>/delete_post/<int:post_id>", methods=["GET","POST"])
+def delete_post(thread_id, post_id):
+ return f"todo (t: {thread_id}, p: {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})"