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

Function admin_sync

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

Source from the content-addressed store, hash-verified

94
95@requires("authenticated", redirect="homepage")
96def admin_sync(request: Request) -> JSONResponse:
97 return JSONResponse(
98 {
99 "authenticated": request.user.is_authenticated,
100 "user": request.user.display_name,
101 }
102 )
103
104
105@requires("authenticated")

Callers

nothing calls this directly

Calls 1

JSONResponseClass · 0.90

Tested by

no test coverage detected