Skip to content

Commit

Permalink
Merge pull request #323 from Vladyslav49/patch-1
Browse files Browse the repository at this point in the history
add lifespan to FastAPI
  • Loading branch information
Tishka17 authored Jan 2, 2025
2 parents 9bf5183 + 29f58cc commit 88ecccd
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 88ecccd

Please sign in to comment.