Marek Baczynski 6 years ago
commit 4649723f87

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

Loading…
Cancel
Save