From 91c2017759fce60427bae62dc9028fe5fb7458a1 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Wed, 7 Oct 2020 10:33:47 -0500 Subject: [PATCH] Modify create_location to return 'api_endpoints' (plural) --- webapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapi.py b/webapi.py index 4f23caf..4d37b76 100644 --- a/webapi.py +++ b/webapi.py @@ -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"])