feat(tfstated): bootstrap webui listening on a second port

This commit is contained in:
Julien Dessaux 2025-01-02 19:43:53 +01:00
parent 99ff8441da
commit 24bca7067b
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 78 additions and 2 deletions

14
pkg/webui/routes.go Normal file
View file

@ -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())
}