diff options
author | Julien Dessaux | 2025-01-02 19:43:53 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-01-02 19:43:53 +0100 |
commit | 24bca7067b02844dc275ed6e22f96f20ab02f82e (patch) | |
tree | 5eab0d3e6d2a0beae78ab4c7be02dd2a60af4af4 /pkg/webui/routes.go | |
parent | chore(tfstated): code cleanup (diff) | |
download | tfstated-24bca7067b02844dc275ed6e22f96f20ab02f82e.tar.gz tfstated-24bca7067b02844dc275ed6e22f96f20ab02f82e.tar.bz2 tfstated-24bca7067b02844dc275ed6e22f96f20ab02f82e.zip |
feat(tfstated): bootstrap webui listening on a second port
Diffstat (limited to 'pkg/webui/routes.go')
-rw-r--r-- | pkg/webui/routes.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/webui/routes.go b/pkg/webui/routes.go new file mode 100644 index 0000000..ef16040 --- /dev/null +++ b/pkg/webui/routes.go @@ -0,0 +1,14 @@ +package webui + +import ( + "net/http" + + "git.adyxax.org/adyxax/tfstated/pkg/database" +) + +func addRoutes( + mux *http.ServeMux, + db *database.DB, +) { + mux.Handle("GET /healthz", handleHealthz()) +} |