summaryrefslogtreecommitdiff
path: root/src/controllers
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-02-09 17:29:34 -0600
committerHombreLaser <sebastian-440@live.com>2024-02-09 17:29:34 -0600
commit1fdacee131a6840329fd6746cd7511c3fb16b829 (patch)
tree9713982aed945300ca5508cdf005a75943cb97d4 /src/controllers
parent2a16eeb8df3fab2715b95efbbdc69b7c03a6a746 (diff)
Fix comments rendering
Diffstat (limited to 'src/controllers')
-rw-r--r--src/controllers/replies_controller.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/controllers/replies_controller.py b/src/controllers/replies_controller.py
index d7be3d0..324c825 100644
--- a/src/controllers/replies_controller.py
+++ b/src/controllers/replies_controller.py
@@ -6,10 +6,14 @@ replies_blueprint = Blueprint('replies_controller',
'__replies_controller__')
+@replies_blueprint.get('/api/replies/new')
+def new():
+ return render_template('replies/form.jinja')
+
+
@replies_blueprint.post('/api/comments/<int:comment_id>/replies')
def create(comment_id):
- breakpoint()
- service = CreateReplyService(request.get_json(), comment_id)
+ service = CreateReplyService(request.form, comment_id)
status_code = service.call()
if status_code != 200: