Allow POST method on /json_items

This commit is contained in:
Felipe M 2020-11-05 10:31:18 +01:00
parent 3894d54a09
commit 49780c4c96
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -238,7 +238,7 @@ def samesite_iframe_view():
return f"iframe on {hostname}"
@app.route("/json_items")
@app.route("/json_items", methods=["GET", "POST"])
def items_view():
"""
Returns a JSON list with the items specified by the `items_number` parameter.