Modify create_location to return 'api_endpoints' (plural)

This commit is contained in:
BBaoVanC 2020-10-07 10:33:47 -05:00
parent 8e44280e7d
commit 91c2017759
No known key found for this signature in database
GPG Key ID: 6D74C8B0E7D791C2

View File

@ -261,7 +261,7 @@ def api_create_location():
session.commit()
print("committed")
return jsonify({'api_endpoint': f'/api/v1/location/name/{locname}'})
return jsonify({'api_endpoints': f'/api/v1/location/name/{locname}'})
@app.route("/api/v1/create_brand", methods=["POST"])