From 4a7e97b8417f240a04a89f07921498ba25744c72 Mon Sep 17 00:00:00 2001 From: Devon Bautista Date: Thu, 8 Aug 2024 09:21:14 -0600 Subject: [PATCH] /service/all -> /service/status/all The latter endpoint is documented in Swagger, so the actual endpoint should match. --- cmd/boot-script-service/routers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/boot-script-service/routers.go b/cmd/boot-script-service/routers.go index 62f2921..99af356 100644 --- a/cmd/boot-script-service/routers.go +++ b/cmd/boot-script-service/routers.go @@ -91,8 +91,8 @@ func initHandlers() *chi.Mux { router.HandleFunc(baseEndpoint+"/bootscript", bootScript) router.HandleFunc(baseEndpoint+"/hosts", hosts) router.HandleFunc(baseEndpoint+"/dumpstate", dumpstate) - router.HandleFunc(baseEndpoint+"/service/all", service) router.HandleFunc(baseEndpoint+"/service/status", serviceStatusResponse) + router.HandleFunc(baseEndpoint+"/service/status/all", service) router.HandleFunc(baseEndpoint+"/service/version", serviceVersionResponse) router.HandleFunc(baseEndpoint+"/service/hsm", serviceHSMResponse) router.HandleFunc(baseEndpoint+"/service/storage/status", serviceStorageResponse)