MCPcopy Index your code
hub / github.com/gourouting/singo / UserMe

Function UserMe

api/user.go:34–38  ·  view source on GitHub ↗

UserMe returns the user profile.

(c *gin.Context)

Source from the content-addressed store, hash-verified

32
33// UserMe returns the user profile.
34func UserMe(c *gin.Context) {
35 user := CurrentUser(c)
36 res := serializer.BuildUserResponse(*user)
37 c.JSON(200, res)
38}
39
40// UserLogout handles user logout.
41func UserLogout(c *gin.Context) {

Callers

nothing calls this directly

Calls 2

BuildUserResponseFunction · 0.92
CurrentUserFunction · 0.70

Tested by

no test coverage detected