summaryrefslogtreecommitdiff
path: root/pkg/webui/routes.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-02 19:43:53 +0100
committerJulien Dessaux2025-01-02 19:43:53 +0100
commit24bca7067b02844dc275ed6e22f96f20ab02f82e (patch)
tree5eab0d3e6d2a0beae78ab4c7be02dd2a60af4af4 /pkg/webui/routes.go
parentchore(tfstated): code cleanup (diff)
downloadtfstated-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.go14
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())
+}