MCPcopy
hub / github.com/encode/starlette / dashboard

Function dashboard

tests/test_authentication.py:55–61  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

53
54@requires("authenticated")
55async def dashboard(request: Request) -> JSONResponse:
56 return JSONResponse(
57 {
58 "authenticated": request.user.is_authenticated,
59 "user": request.user.display_name,
60 }
61 )
62
63
64@requires("authenticated", redirect="homepage")

Callers

nothing calls this directly

Calls 1

JSONResponseClass · 0.90

Tested by

no test coverage detected