fix missing API version in URL
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
2026-10-08 22:29:23 +02:00
parent 85295deb22
commit 798c88198c
2 changed files with 1 additions and 42 deletions
+1 -4
View File
@@ -137,9 +137,6 @@ func GetData(server config.Server, apiVersion string) (data *ExportData, err err
for path, value := range Registry {
GetJSON(client, login.Token, server, path, value)
if path == "tysc/sports" {
slog.Info("Sports", "value", value, "Registry.Sports", Sports)
}
}
export := ExportData{
Sport: Sports,
@@ -199,7 +196,7 @@ func WriteJson(data *ExportData, fileName string) error {
}
func GetJSON(client *resty.Client, token string, server config.Server, path string, v any) {
url := fmt.Sprintf("%s/%s", server.Url, path)
url := fmt.Sprintf("%s/%s/%s", server.Url, config.Config.ApiVersion, path)
if config.Verbose > 1 {
slog.Info("GetJSON", "url", url)
}