diff options
author | Julien Dessaux | 2024-09-28 09:45:03 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-09-28 09:45:03 +0200 |
commit | 0f7e13222d087d85c1afd67d22d36f544a39801d (patch) | |
tree | 72f935064914ba415d3a41b9c78ef638689d5083 /cmd/tfstate/routes.go | |
parent | chore(tfstate): initial import (diff) | |
download | tfstated-0f7e13222d087d85c1afd67d22d36f544a39801d.tar.gz tfstated-0f7e13222d087d85c1afd67d22d36f544a39801d.tar.bz2 tfstated-0f7e13222d087d85c1afd67d22d36f544a39801d.zip |
feat(tfstate): bootstrap an http server that answers /healthz
Diffstat (limited to 'cmd/tfstate/routes.go')
-rw-r--r-- | cmd/tfstate/routes.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/tfstate/routes.go b/cmd/tfstate/routes.go new file mode 100644 index 0000000..f583fc7 --- /dev/null +++ b/cmd/tfstate/routes.go @@ -0,0 +1,7 @@ +package main + +import "net/http" + +func addRoutes(mux *http.ServeMux) { + mux.Handle("GET /healthz", handleHealthz()) +} |