Skip to content
Advertisement

Tag: routes

Add a prefix to all Flask routes

I have a prefix that I want to add to every route. Right now I add a constant to the route at every definition. Is there a way to do this automatically? Answer The answer depends on how you are serving this application. Sub-mounted inside of another WSGI container Assuming that you are going to run this application inside of

Advertisement