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

Method setup_catchall

dash/backends/_quart.py:223–230  ·  view source on GitHub ↗
(self, dash_app: Dash)

Source from the content-addressed store, hash-verified

221 dash_app._add_url("", index, methods=["GET"])
222
223 def setup_catchall(self, dash_app: Dash):
224 async def catchall(
225 path: str, *args, **kwargs
226 ): # noqa: ARG001 - path is unused but kept for route signature, pylint: disable=unused-argument
227 return Response(dash_app.index(*args, **kwargs), content_type="text/html") # type: ignore[arg-type]
228
229 # pylint: disable=protected-access
230 dash_app._add_url("<path:path>", catchall, methods=["GET"])
231
232 def before_request(self, func: _t.Callable[[], _t.Any]):
233 self.server.before_request(func)

Callers

nothing calls this directly

Calls 1

_add_urlMethod · 0.80

Tested by

no test coverage detected