This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user