make API urls lowercase for less friction/more intuitive urls
This commit is contained in:
parent
8de6dda57a
commit
2958e46269
@ -13,7 +13,7 @@ CORS(app)
|
|||||||
|
|
||||||
# FLO TOKEN APIs
|
# FLO TOKEN APIs
|
||||||
|
|
||||||
@app.route('/api/v1.0/getTokenlist', methods=['GET'])
|
@app.route('/api/v1.0/gettokenlist', methods=['GET'])
|
||||||
def gettokenlist():
|
def gettokenlist():
|
||||||
filelist = []
|
filelist = []
|
||||||
for item in os.listdir(os.path.join(dbfolder,'tokens')):
|
for item in os.listdir(os.path.join(dbfolder,'tokens')):
|
||||||
@ -198,7 +198,7 @@ def getcontractparticipants():
|
|||||||
else:
|
else:
|
||||||
return jsonify(result='error', details='Smart Contract with the given name doesn\'t exist')
|
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():
|
def getParticipantDetails():
|
||||||
floaddress = request.args.get('floaddress')
|
floaddress = request.args.get('floaddress')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user