Commit 1b3e776b authored by Eirik Martin Danielsen's avatar Eirik Martin Danielsen 💬
Browse files

renamed location to message

parent 2d2bf294
......@@ -58,7 +58,7 @@ class LocationEndpoint(Resource):
if location:
db.session.delete(location)
db.session.commit()
return jsonify({"location": str(location.id) + " deleted.", "status": 200})
return jsonify({"message": str(location.id) + " deleted.", "status": 200})
else:
return jsonify({"message": "location doesn't exist", "status": 400})
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment