Fix HTTP request method in app.route call
This commit is contained in:
parent
d3730aa6cd
commit
7e43feb7d8
|
@ -70,7 +70,7 @@ def register():
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
@app.route("/<fingerprint>", methods=["GET", "UPDATE", "DELETE"])
|
@app.route("/<fingerprint>", methods=["GET", "PATCH", "DELETE"])
|
||||||
def render_data(fingerprint):
|
def render_data(fingerprint):
|
||||||
user = User.query.filter_by(fingerprint=fingerprint).first()
|
user = User.query.filter_by(fingerprint=fingerprint).first()
|
||||||
if not user: return abort(404)
|
if not user: return abort(404)
|
||||||
|
|
Loading…
Reference in New Issue