Skip to content

Set host for every route in one place? #4235

Answered by davidism
SuperSajuuk asked this question in Q&A
Discussion options

You must be logged in to vote

If all routes are for one host, you don't need to use host matching.

You can use functools.partial, or otherwise wtite a decorator, to wrap app.route and automatically pass the value you want.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@SuperSajuuk
Comment options

@tachyondecay
Comment options

@SuperSajuuk
Comment options

@ThiefMaster
Comment options

@SuperSajuuk
Comment options

Answer selected by SuperSajuuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants