Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManageProfiles ¶
func ManageProfiles(db *gorm.DB) http.HandlerFunc
ManageProfiles is a route for creating and updating user profiles
Types ¶
type ProfileRequest ¶
type ProfileRequest struct { Username string `json:"username"` FirstName string `json:"first_name"` LastName string `json:"last_name"` ProfilePicture string `json:"profile_picture"` Bio string `json:"bio"` }
CreateProfileRequest is the structure of the request body for the createProfile endpoint
Click to show internal directories.
Click to hide internal directories.