Skip to content

Commit b5b617b

Browse files
committed
Add LitestarConfig to Readme
1 parent 02610a8 commit b5b617b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ The application can be configured in a similar manner:
412412

413413
```python
414414
import litestar
415-
from litestar.config.app import AppConfig
416415

416+
from microbootstrap.config.litestar import LitestarConfig
417417
from microbootstrap.bootstrappers.litestar import LitestarBootstrapper
418418
from microbootstrap import SentryConfig, OpentelemetryConfig
419419

@@ -424,7 +424,7 @@ async def my_handler() -> str:
424424

425425
application: litestar.Litestar = (
426426
LitestarBootstrapper(settings)
427-
.configure_application(AppConfig(route_handlers=[my_handler]))
427+
.configure_application(LitestarConfig(route_handlers=[my_handler]))
428428
.bootstrap()
429429
)
430430
```

0 commit comments

Comments
 (0)