From 24bca7067b02844dc275ed6e22f96f20ab02f82e Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 2 Jan 2025 19:43:53 +0100 Subject: feat(tfstated): bootstrap webui listening on a second port --- pkg/webui/routes.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pkg/webui/routes.go (limited to 'pkg/webui/routes.go') 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()) +} -- cgit v1.2.3