@app.route(["/api/user/creationdate", "/api/user/createdat", "/api/user/createddate"])
def cd(user):
... code here
The above code doesnt return any errors and doesnt work for me. Is there a way to assign multiple routes to one function?
Edit (how to do this)
@app.route("/route1")
@app.route("/route2")
@app.route("/route3")
def cd():
... code here
doing this will have all of the routes above trigger the function cd()