feat(tfstated): bootstrap webui listening on a second port
This commit is contained in:
parent
99ff8441da
commit
24bca7067b
4 changed files with 78 additions and 2 deletions
14
pkg/webui/routes.go
Normal file
14
pkg/webui/routes.go
Normal 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())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue