mirror of
https://github.com/benbusby/farside.git
synced 2025-06-06 01:16:37 +00:00
Change base link for services json
The sourcehut link is (rightfully) blocking unauthenticated requests, so using the github link is more reliable.
This commit is contained in:
parent
368fa2005d
commit
7b9b453a36
1 changed files with 2 additions and 7 deletions
|
@ -13,7 +13,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
baseRepoLink = "https://git.sr.ht/~benbusby/farside/blob/main/"
|
baseRepoLink = "https://raw.githubusercontent.com/benbusby/farside/refs/heads/main/"
|
||||||
|
|
||||||
noCFServicesJSON = "services.json"
|
noCFServicesJSON = "services.json"
|
||||||
fullServicesJSON = "services-full.json"
|
fullServicesJSON = "services-full.json"
|
||||||
|
@ -26,11 +26,6 @@ type Service struct {
|
||||||
Instances []string `json:"instances"`
|
Instances []string `json:"instances"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ingestServicesList(servicesBytes []byte) error {
|
|
||||||
err := json.Unmarshal(servicesBytes, &ServiceList)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetServicesFileName() string {
|
func GetServicesFileName() string {
|
||||||
cloudflareEnabled := false
|
cloudflareEnabled := false
|
||||||
|
|
||||||
|
@ -78,7 +73,7 @@ func InitializeServices() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = ingestServicesList(fileBytes)
|
err = json.Unmarshal(fileBytes, &ServiceList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue