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

Function admin

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

Source from the content-addressed store, hash-verified

63
64@requires("authenticated", redirect="homepage")
65async def admin(request: Request) -> JSONResponse:
66 return JSONResponse(
67 {
68 "authenticated": request.user.is_authenticated,
69 "user": request.user.display_name,
70 }
71 )
72
73
74@requires("authenticated")

Callers

nothing calls this directly

Calls 1

JSONResponseClass · 0.90

Tested by

no test coverage detected