From 2958e46269d1a364d2e1170b2b928dd16783e8ea Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Wed, 22 May 2019 11:28:27 +0000 Subject: [PATCH] make API urls lowercase for less friction/more intuitive urls --- ranchimallflo_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranchimallflo_api.py b/ranchimallflo_api.py index 3514d9b..d969dd3 100644 --- a/ranchimallflo_api.py +++ b/ranchimallflo_api.py @@ -13,7 +13,7 @@ CORS(app) # FLO TOKEN APIs -@app.route('/api/v1.0/getTokenlist', methods=['GET']) +@app.route('/api/v1.0/gettokenlist', methods=['GET']) def gettokenlist(): filelist = [] for item in os.listdir(os.path.join(dbfolder,'tokens')): @@ -198,7 +198,7 @@ def getcontractparticipants(): else: return jsonify(result='error', details='Smart Contract with the given name doesn\'t exist') -@app.route('/api/v1.0/getParticipantDetails', methods=['GET']) +@app.route('/api/v1.0/getparticipantdetails', methods=['GET']) def getParticipantDetails(): floaddress = request.args.get('floaddress')