feat: auth middleware + /me endpoint

This commit is contained in:
hexlocation 2025-05-06 08:39:19 +02:00
parent b28b719b51
commit 0b20a0d027
3 changed files with 40 additions and 5 deletions

View file

@ -11,11 +11,11 @@ type TokenResponse struct {
}
type User struct {
ID string `json:"id" gorm:"primaryKey"`
Username string `json:"username"`
Blacklisted bool
Email string `json:"email"`
CreatedAt time.Time
ID string `json:"id" gorm:"primaryKey"`
Username string `json:"username"`
Blacklisted bool `json:"blacklisted"`
Email string `json:"email"`
CreatedAt time.Time `json:"created_at"`
}
type AvatarDecorationData struct {