(self, dash_app: Dash)
| 317 | return wrapped |
| 318 | |
| 319 | def setup_index(self, dash_app: Dash): |
| 320 | async def index(_request: Request): |
| 321 | return Response(content=dash_app.index(), media_type="text/html") |
| 322 | |
| 323 | # pylint: disable=protected-access |
| 324 | dash_app._add_url("", index, methods=["GET"]) |
| 325 | |
| 326 | def setup_catchall(self, dash_app: Dash): |
| 327 | """This is needed to ensure that all routes are handled by FastAPI |