Debug post options

This commit is contained in:
Yax 2017-07-09 11:42:36 +02:00
parent c0666262be
commit 537940381b

View file

@ -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: