Debug post options
This commit is contained in:
parent
4fce3d7363
commit
125acbad1c
@ -60,7 +60,12 @@ def get_comments_count(request):
|
|||||||
return r
|
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):
|
def new_comment(request):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user