Skip to content

Commit 439af32

Browse files
committed
Add routes to Application options.
1 parent 15a5fff commit 439af32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

starlette_plus/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from starlette.applications import Starlette
2525
from starlette.requests import Request
2626
from starlette.responses import Response
27-
from starlette.routing import Route, WebSocketRoute
27+
from starlette.routing import Mount, Route, WebSocketRoute
2828
from starlette.types import Receive, Scope, Send
2929
from starlette.websockets import WebSocket
3030

@@ -49,6 +49,7 @@ class ApplicationOptions(TypedDict, total=False):
4949
middleware: list[Middleware]
5050
on_startup: list[Callable[[], Coroutine[Any, Any, None]]]
5151
on_shutdown: list[Callable[[], Coroutine[Any, Any, None]]]
52+
routes: list[Route | WebSocketRoute | Mount]
5253

5354

5455
__all__ = ("Application", "View", "route", "limit")

0 commit comments

Comments
 (0)