mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
default fix
This commit is contained in:
@@ -523,10 +523,10 @@ func doPrefetchCycle(client *http.Client, baseURL string) {
|
||||
"/settings": "settings.json",
|
||||
"/seo": "seo.json",
|
||||
"/articles?page=1&page_size=10&published=true": "articles.json",
|
||||
"/sponsors": "sponsors.json",
|
||||
"/events/upcoming": "events_upcoming.json",
|
||||
"/public/team-logo-overrides": "team_logo_overrides.json",
|
||||
"/competition-aliases": "competition_aliases.json",
|
||||
"/sponsors": "sponsors.json",
|
||||
"/events/upcoming": "events_upcoming.json",
|
||||
"/public/team-logo-overrides": "team_logo_overrides.json",
|
||||
"/competition-aliases": "competition_aliases.json",
|
||||
}
|
||||
statuses = make([]epStatus, 0, len(endpoints))
|
||||
for path, file := range endpoints {
|
||||
@@ -542,6 +542,11 @@ func doPrefetchCycle(client *http.Client, baseURL string) {
|
||||
}
|
||||
}
|
||||
|
||||
// Alias: keep legacy/frontend callers happy expecting matches.json
|
||||
if b, err := os.ReadFile(filepath.Join(cacheDir, "events_upcoming.json")); err == nil {
|
||||
_ = os.WriteFile(filepath.Join(cacheDir, "matches.json"), b, 0o644)
|
||||
}
|
||||
|
||||
// 2) Dynamic FACR endpoints based on saved settings
|
||||
settingsPath := filepath.Join(cacheDir, "settings.json")
|
||||
var clubID, clubType string
|
||||
|
||||
Reference in New Issue
Block a user