// GetUser from id (in context)
GetUser from id (in context)
// GetUser from id ( in context )
func (UserController) GetUser(c *gin.Context) {
	user, err := store.GetUserByID(c, c.Param("id"))
	if err != nil {
		c.AbortWithError(http.StatusNotFound, helpers.ErrorWithCode("user_not_found", "The user does not exist", err))
		return
	}
	c.JSON(http.StatusOK, user.Sanitize("", "", ""))
}
func ( UserController ) GetUser ( c * gin . Context ) { user , err := store . GetUserByID ( c , c . Param ( " " ) ) if err != nil { c . AbortWithError ( http . StatusNotFound , helpers . ErrorWithCode ( " " , " " , err ) ) return } c . JSON ( http . StatusOK , user . Sanitize ( " " , " " , " " ) ) }
GetUser from id (in context)
GetUser from id ( in context )