Skip to content

Commit

Permalink
fix health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lu1as committed Mar 21, 2022
1 parent 0fc7c70 commit 5d724f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/terraform-backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit 5d724f0

Please sign in to comment.