Skip to content

Commit

Permalink
Add routes to Application options.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Apr 14, 2024
1 parent 15a5fff commit 439af32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion starlette_plus/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from starlette.applications import Starlette
from starlette.requests import Request
from starlette.responses import Response
from starlette.routing import Route, WebSocketRoute
from starlette.routing import Mount, Route, WebSocketRoute
from starlette.types import Receive, Scope, Send
from starlette.websockets import WebSocket

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


__all__ = ("Application", "View", "route", "limit")
Expand Down

0 comments on commit 439af32

Please sign in to comment.