diff --git a/src/ohmyapi/core/runtime.py b/src/ohmyapi/core/runtime.py index ccf52af..6559dbe 100644 --- a/src/ohmyapi/core/runtime.py +++ b/src/ohmyapi/core/runtime.py @@ -346,10 +346,10 @@ class App: """ Return an APIRouter with all loaded routes. """ - router = APIRouter() + out = [] for r in self.routers: - router.include_router(r) - return router.routes + out.extend(r.routes) + return out def dict(self) -> Dict[str, Any]: """