Browse Source

solved issue10180 regarding order on for loop at ln 1461 of routing py

pull/14984/head
Felipe Carvajal 5 months ago
parent
commit
8e16e7b73c
  1. 3
      fastapi/routing.py

3
fastapi/routing.py

@ -1548,6 +1548,9 @@ class APIRouter(routing.Router):
self.add_websocket_route(
prefix + route.path, route.endpoint, name=route.name
)
elif isinstance(route, routing.Mount):
self.mount(prefix + route.path, route.app, route.name)
for handler in router.on_startup:
self.add_event_handler("startup", handler)
for handler in router.on_shutdown:

Loading…
Cancel
Save