So I have a method that is accessible by multiple routes:
@app.route("/canonical/path/")
@app.route("/alternate/path/")
def foo():
return "hi!"
Now, how can I call url_for("foo")
and know that I will get the first route?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…