From b374d7ccc4b455f1e1829ab3ff0808de80bc39e0 Mon Sep 17 00:00:00 2001 From: sauravhaloi Date: Sun, 24 Nov 2019 16:30:40 +0000 Subject: [PATCH] Fix API path of server version (#195) --- gitea/miscellaneous.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea/miscellaneous.go b/gitea/miscellaneous.go index 6251bca..fe06ac1 100644 --- a/gitea/miscellaneous.go +++ b/gitea/miscellaneous.go @@ -9,5 +9,5 @@ func (c *Client) ServerVersion() (string, error) { var v = struct { Version string `json:"version"` }{} - return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v) + return v.Version, c.getParsedResponse("GET", "/version", nil, nil, &v) }