Implement root handler
This commit is contained in:
@@ -107,3 +107,15 @@ type ActiveTorrentCountResponse struct {
|
||||
DownloadingCount int `json:"nb"`
|
||||
MaxNumberOfTorrents int `json:"limit"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID int `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Email string `json:"email"`
|
||||
Points int `json:"points"` // Fidelity points
|
||||
Locale string `json:"locale"` // User language
|
||||
Avatar string `json:"avatar"` // URL
|
||||
Type string `json:"type"` // "premium" or "free"
|
||||
Premium int `json:"premium"` // seconds left as a Premium user
|
||||
Expiration string `json:"expiration"` // jsonDate
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user