Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Mar 19, 2024
1 parent 4d9064f commit b443420
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ async def index(injected: str) -> str:
return injected


app = Litestar([index], dependencies={"injected": Provide(container.DIContainer.async_resource)})
app = Litestar(
route_handlers=[index],
dependencies={"injected": Provide(container.DIContainer.async_resource)},
)


def test_litestar_di() -> None:
Expand Down

0 comments on commit b443420

Please sign in to comment.