From 125acbad1c3dc31e9017f96152b4234845c648d4 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 9 Jul 2017 11:42:36 +0200 Subject: [PATCH] Debug post options --- app/controllers/api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/api.py b/app/controllers/api.py index 23030e1..689e509 100644 --- a/app/controllers/api.py +++ b/app/controllers/api.py @@ -60,7 +60,12 @@ def get_comments_count(request): return r -@app.route("/comments", methods=['POST','OPTIONS']) +@app.route("/comments", methods=['OPTIONS']) +def option_comments(request): + return response.text('OK') + + +@app.route("/comments", methods=['POST']) def new_comment(request): try: