Here is a portion of my python code:
@app.route("/<int:param>/")
def go_to(param):
return param
The above function routes a url such as www.example.com/12 to this function.
How can I declare a parameter rule to redirect urls ending with integers, such as www.example.com/and/boy/12, to this function?
I’m using the Flask framework.
You will need
Werkzeug routing.Complete code: