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

Function dashboard_sync

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

Source from the content-addressed store, hash-verified

73
74@requires("authenticated")
75def dashboard_sync(request: Request) -> JSONResponse:
76 return JSONResponse(
77 {
78 "authenticated": request.user.is_authenticated,
79 "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