Skip to content

Commit

Permalink
Merge pull request #118 from luca-medeiros/fix/router
Browse files Browse the repository at this point in the history
bug: fix missing router when creating application
  • Loading branch information
igorbenav committed Feb 15, 2024
2 parents ddec40e + 169e93f commit b1a8370
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 b1a8370

Please sign in to comment.