How can i get something like this to work?
@app.route('/client_progress')
@app.route('/client_update', methods=['POST', 'GET'])
def func_1():
if (//app.route == client_progress)
if request.method == 'POST':
return 'hello world'
elif (//app.route == client_update)
if request.method == 'POST':
return 'Good World'
I would like to have two app routes to same function and be able to respond back to appropriate route.
is this possible? if yes, please share the example.