diff --git a/internal/handlers/auth.go b/internal/handlers/auth.go index 8a6471c..991ba0c 100644 --- a/internal/handlers/auth.go +++ b/internal/handlers/auth.go @@ -101,6 +101,7 @@ type UserProfile struct { FirstName string `json:"first_name"` LastName string `json:"last_name"` Role string `json:"role"` + Theme string `json:"theme,omitempty"` } type UpdateProfileRequest struct { @@ -502,6 +503,7 @@ func (h *AuthHandler) GetProfile(c *echo.Context) error { FirstName: firstName, LastName: lastName, Role: user.Role, + Theme: user.Theme.String, }) }