From 5d724f0b08d2f63cf490e47c5794c30398ffccc5 Mon Sep 17 00:00:00 2001 From: Lukas Steiner Date: Mon, 21 Mar 2022 21:17:53 +0100 Subject: [PATCH] fix health endpoint --- cmd/terraform-backend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/terraform-backend.go b/cmd/terraform-backend.go index afa3fe8..43ee8a3 100644 --- a/cmd/terraform-backend.go +++ b/cmd/terraform-backend.go @@ -169,5 +169,6 @@ func main() { log.Printf("listening on %s", addr) r := mux.NewRouter().StrictSlash(true) r.HandleFunc("/state/{project}/{id}", stateHandler(store, locker, kms)) + r.HandleFunc("/health", healthHandler) log.Fatalf("failed to listen on %s: %v", addr, http.ListenAndServe(addr, r)) }