This commit is contained in:
2018-11-13 20:56:51 +01:00
+2 -2
View File
@@ -276,7 +276,7 @@ def alter(partID):
return '{"status":"ok", "part_id" : ' + str(new_id) + '}'
@app.route('/parts/delete/<partID>')
# @requires_auth
@requires_auth
def delete(partID):
if int(partID) < 0:
abort(400)
@@ -285,7 +285,7 @@ def delete(partID):
return '{"status":"ok"}'
@app.route('/parts/deleteLocation/<locationID>')
# @requires_auth
@requires_auth
def deleteLocation(locationID):
if int(locationID) < 0:
abort(400)