Skip to content

Commit 958f4db

Browse files
committed
Add asgi_routes to faststream config
1 parent d466426 commit 958f4db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

microbootstrap/config/faststream.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
)
1414
from faststream._internal.broker import BrokerUsecase
1515
from faststream._internal.context import ContextRepo
16+
from faststream.asgi.types import ASGIApp
1617
from faststream.specification.base import SpecificationFactory
1718

1819

1920
@dataclasses.dataclass
2021
class FastStreamConfig:
2122
broker: BrokerUsecase[typing.Any, typing.Any] | None = None
23+
asgi_routes: typing.Sequence[tuple[str, ASGIApp]] = ()
2224
logger: LoggerProto | None = None
2325
provider: Provider | None = None
2426
serializer: SerializerProto | None = None

0 commit comments

Comments
 (0)