MCPcopy Create free account
hub / github.com/reactive-python/reactpy / _make_index_route

Function _make_index_route

src/py/reactpy/reactpy/backend/starlette.py:129–135  ·  view source on GitHub ↗
(options: Options)

Source from the content-addressed store, hash-verified

127
128
129def _make_index_route(options: Options) -> Callable[[Request], Awaitable[HTMLResponse]]:
130 index_html = read_client_index_html(options)
131
132 async def serve_index(request: Request) -> HTMLResponse:
133 return HTMLResponse(index_html)
134
135 return serve_index
136
137
138def _setup_single_view_dispatcher_route(

Callers 1

_setup_common_routesFunction · 0.85

Calls 1

read_client_index_htmlFunction · 0.90

Tested by

no test coverage detected