You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Application(
services=services,
show_error_details=configuration.show_error_details,
router=RouterWithPrefix(f'/{configuration.App_Name}/') if configuration.production else None,
)
class RouterWithPrefix(Router):
"""Router With Prefix."""
Above code is for BlackSheep V1.2.18 to add prefix to all routes,. It changes
http://localhost:1400/login
to
http://localhost:1400/QMOSDS/login
I updated to BlackSheep 2.0.4. Above cold will not work when configuration.production is True.
Above cold will work when configuration.production is False. Use default_router
How to add prefix to all routes in BlackSheep 2.0.4?? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions