Solution
@app.route("/rest")
def base():
response = common_operation()
return response.json()
@app.route("/rest/sr1")
def subroute1():
op = common_operation()
op1 = further_operations(op)
return op1
@app.route("/rest")
def base():
response = common_operation()
return response.json()
@app.route("/rest/sr1")
def subroute1():
op = common_operation()
op1 = further_operations(op)
return op1