name parameter already exists; i’m not making a feature request for it.
the reason i am using that feature is because i automatically generate some kinds of similar routes. simplified, and just one of several examples (and no, neither blueprints nor middlewares look like good alternatives):
def add_route_with_locale(handler, route):
def handler_with_language(language, **kwargs):
app.add_route(handler_with_language, '/language/' + route)
now if i use this helper with a bunch of handlers, they will all be named ‘handler_with_language’ by default, which is useless for ‘url_for’. so i specific my own names.
i don’t know how to answer the last part of your question, path and endpoint don’t work because they do completely different things…? see my previous comment, path gives the url, and endpoint gives the handler name (which is the same as the default route name, if you don’t specify a custom one). i am looking for the route name…