Skip to content

Commit

Permalink
bug: fix missing router when creating application
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Medeiros committed Feb 15, 2024
1 parent ddec40e commit 169e93f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def create_application(
lifespan = lifespan_factory(settings, create_tables_on_start=create_tables_on_start)

application = FastAPI(lifespan=lifespan, **kwargs)
application.include_router(router)

if isinstance(settings, ClientSideCacheSettings):
application.add_middleware(ClientCacheMiddleware, max_age=settings.CLIENT_CACHE_MAX_AGE)
Expand Down

0 comments on commit 169e93f

Please sign in to comment.