Implement root handler

This commit is contained in:
Ben Sarmiento
2023-11-30 23:08:16 +01:00
parent 0ad879066e
commit 9f81b2b1d0
9 changed files with 105 additions and 127 deletions

View File

@@ -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
}