Merge branch 'master' of https://git.elab.kth.se/davide/ELAB-partsearch
This commit is contained in:
+2
-2
@@ -276,7 +276,7 @@ def alter(partID):
|
|||||||
return '{"status":"ok", "part_id" : ' + str(new_id) + '}'
|
return '{"status":"ok", "part_id" : ' + str(new_id) + '}'
|
||||||
|
|
||||||
@app.route('/parts/delete/<partID>')
|
@app.route('/parts/delete/<partID>')
|
||||||
# @requires_auth
|
@requires_auth
|
||||||
def delete(partID):
|
def delete(partID):
|
||||||
if int(partID) < 0:
|
if int(partID) < 0:
|
||||||
abort(400)
|
abort(400)
|
||||||
@@ -285,7 +285,7 @@ def delete(partID):
|
|||||||
return '{"status":"ok"}'
|
return '{"status":"ok"}'
|
||||||
|
|
||||||
@app.route('/parts/deleteLocation/<locationID>')
|
@app.route('/parts/deleteLocation/<locationID>')
|
||||||
# @requires_auth
|
@requires_auth
|
||||||
def deleteLocation(locationID):
|
def deleteLocation(locationID):
|
||||||
if int(locationID) < 0:
|
if int(locationID) < 0:
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|||||||
Reference in New Issue
Block a user