diff --git a/examples/real_world/main_web.py b/examples/real_world/main_web.py index 0ac71d0d..ef3a57a4 100644 --- a/examples/real_world/main_web.py +++ b/examples/real_world/main_web.py @@ -13,7 +13,7 @@ def create_fastapi_app() -> FastAPI: - app = FastAPI() + app = FastAPI(lifespan=lifespan) app.include_router(router) return app