Skip to content

Commit b1a8370

Browse files
authored
Merge pull request #118 from luca-medeiros/fix/router
bug: fix missing router when creating application
2 parents ddec40e + 169e93f commit b1a8370

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/core/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def create_application(
185185
lifespan = lifespan_factory(settings, create_tables_on_start=create_tables_on_start)
186186

187187
application = FastAPI(lifespan=lifespan, **kwargs)
188+
application.include_router(router)
188189

189190
if isinstance(settings, ClientSideCacheSettings):
190191
application.add_middleware(ClientCacheMiddleware, max_age=settings.CLIENT_CACHE_MAX_AGE)

0 commit comments

Comments
 (0)