From 4fce3d7363e7d8a20599274e78ba7c77d65f27ed Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 9 Jul 2017 11:39:12 +0200 Subject: [PATCH] Fix post --- app/controllers/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api.py b/app/controllers/api.py index e6f364d..23030e1 100644 --- a/app/controllers/api.py +++ b/app/controllers/api.py @@ -60,7 +60,7 @@ def get_comments_count(request): return r -@app.route("/comments", methods=['POST']) +@app.route("/comments", methods=['POST','OPTIONS']) def new_comment(request): try: