UserMe returns the user profile.
(c *gin.Context)
| 32 | |
| 33 | // UserMe returns the user profile. |
| 34 | func 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. |
| 41 | func UserLogout(c *gin.Context) { |
nothing calls this directly
no test coverage detected