summaryrefslogtreecommitdiff
path: root/src/controllers/replies_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/replies_controller.py')
-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: