feat: auth middleware + /me endpoint
This commit is contained in:
parent
b28b719b51
commit
0b20a0d027
3 changed files with 40 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue