(self, path: str, route_path: str)
| 2043 | return Match.FULL, child_scope |
| 2044 | |
| 2045 | def _get_frontend_path(self, path: str, route_path: str) -> str | None: |
| 2046 | if path == "/": |
| 2047 | return route_path.lstrip("/") |
| 2048 | if route_path == path: |
| 2049 | return "" |
| 2050 | prefix = path + "/" |
| 2051 | if route_path.startswith(prefix): |
| 2052 | return route_path[len(prefix) :] |
| 2053 | return None |
| 2054 | |
| 2055 | async def handle(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 2056 | await self.app(scope, receive, send) |