Add dav and http fields in json
This commit is contained in:
@@ -178,6 +178,8 @@ type RootResponse struct {
|
||||
BuiltAt string `json:"built_at"`
|
||||
GitCommit string `json:"git_commit"`
|
||||
GoVersion string `json:"go_version"`
|
||||
Dav string `json:"dav"`
|
||||
Html string `json:"html"`
|
||||
UserInfo *realdebrid.User `json:"user_info"`
|
||||
}
|
||||
|
||||
@@ -193,6 +195,8 @@ func (zr *ZurgRouter) rootHandler(resp http.ResponseWriter, req *http.Request, p
|
||||
BuiltAt: version.GetBuiltAt(),
|
||||
GitCommit: version.GetGitCommit(),
|
||||
GoVersion: version.GetGoVersion(),
|
||||
Dav: fmt.Sprintf("//%s/dav/", req.Host),
|
||||
Html: fmt.Sprintf("//%s/http/", req.Host),
|
||||
UserInfo: userInfo,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user