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

Function homepage

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

Source from the content-addressed store, hash-verified

43
44
45def homepage(request: Request) -> JSONResponse:
46 return JSONResponse(
47 {
48 "authenticated": request.user.is_authenticated,
49 "user": request.user.display_name,
50 }
51 )
52
53
54@requires("authenticated")

Callers

nothing calls this directly

Calls 1

JSONResponseClass · 0.90

Tested by

no test coverage detected