From 2e9adb60962c56f613a42742cafe34d468137351 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sat, 2 Dec 2023 20:05:15 +0100 Subject: [PATCH] Add sponsorship links --- internal/router/router.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/router/router.go b/internal/router/router.go index 5b5d2b8..526d742 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -189,13 +189,13 @@ type RootResponse struct { GoVersion string `json:"go_version"` Dav string `json:"dav"` Html string `json:"html"` - UserInfo *realdebrid.User `json:"user_info"` // Replace UserInfoType with the actual type - MemAlloc uint64 `json:"mem_alloc"` // Memory allocation in MB - TotalAlloc uint64 `json:"total_alloc"` // Total memory allocated in MB - Sys uint64 `json:"sys"` // System memory in MB - NumGC uint32 `json:"num_gc"` // Number of completed GC cycles - PID int `json:"pid"` // Process ID - Sponsor SponsorResponse `json:"sponsor_this_project"` // Process ID + UserInfo *realdebrid.User `json:"user_info"` // Replace UserInfoType with the actual type + MemAlloc uint64 `json:"mem_alloc"` // Memory allocation in MB + TotalAlloc uint64 `json:"total_alloc"` // Total memory allocated in MB + Sys uint64 `json:"sys"` // System memory in MB + NumGC uint32 `json:"num_gc"` // Number of completed GC cycles + PID int `json:"pid"` // Process ID + Sponsor SponsorResponse `json:"sponsor_zurg"` // Sponsorship links } func (zr *ZurgRouter) rootHandler(resp http.ResponseWriter, req *http.Request, params httprouter.Params) {