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

Function dashboard_sync

tests/test_authentication.py:75–81  ·  tests/test_authentication.py::dashboard_sync
(request: Request)

Source from the content-addressed store, hash-verified

73
74@requires(class="st">"authenticated")
75def dashboard_sync(request: Request) -> JSONResponse:
76 return JSONResponse(
77 {
78 class="st">"authenticated": request.user.is_authenticated,
79 class="st">"user": request.user.display_name,
80 }
81 )
82
83
84class Dashboard(HTTPEndpoint):

Callers

nothing calls this directly

Calls 1

JSONResponseClass · 0.90

Tested by

no test coverage detected