From f463794f0b7058bcdba30feef9219209221ad07e Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <maxadamo@gmail.com> Date: Wed, 22 Jan 2025 19:45:49 +0100 Subject: [PATCH] feat: enhance API URL generation for ACME providers --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 593503d..cf061fc 100644 --- a/main.go +++ b/main.go @@ -164,14 +164,14 @@ Options: } for _, provider := range acmeProviders { - apiURLs = append(apiURLs, "/api/"+provider, "/api/"+provider+"/") + apiURLs = append( + apiURLs, "/api/"+provider, "/api/"+provider+"/", + "/"+provider+"/"+provider+".json", "/"+provider+"/"+provider+"_expired.json", + ) } for _, provider := range acmeProviders { - otherURLs = append( - otherURLs, "/"+provider+"/by_name.html", "/"+provider+"/by_date.html", - "/"+provider+"/"+provider+".json", "/"+provider+"/"+provider+"_expired.json", - ) + otherURLs = append(otherURLs, "/"+provider+"/by_name.html", "/"+provider+"/by_date.html") } puppetURL := "/puppet" -- GitLab