@ -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>')
def deleteLocation(locationID):
if int(locationID) < 0: