Skip to content

Commit

Permalink
add lifespan to FastAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav49 authored Dec 16, 2024
1 parent 62fa62f commit 29f58cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/real_world/main_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def create_fastapi_app() -> FastAPI:
app = FastAPI()
app = FastAPI(lifespan=lifespan)
app.include_router(router)
return app

Expand Down

0 comments on commit 29f58cc

Please sign in to comment.