make API urls lowercase for less friction/more intuitive urls

This commit is contained in:
Vivek Teega 2019-05-22 11:28:27 +00:00
parent 8de6dda57a
commit 2958e46269

View File

@ -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')