MCPcopy Index your code
hub / github.com/plotly/dash / setup_index

Method setup_index

dash/backends/_fastapi.py:319–324  ·  view source on GitHub ↗
(self, dash_app: Dash)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_add_urlMethod · 0.80

Tested by

no test coverage detected