mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-25 00:15:06 +03:00
Refactor web UI server setup in main.go and update default host in config
This commit is contained in:
parent
345d5b9cbd
commit
51a1a0a3d7
9 changed files with 146 additions and 55 deletions
|
@ -35,7 +35,7 @@ func (w *WebUIServer) Start() error {
|
|||
// Health check endpoint
|
||||
mux.HandleFunc("/health", func(rw http.ResponseWriter, r *http.Request) {
|
||||
rw.WriteHeader(http.StatusOK)
|
||||
rw.Write([]byte("OK"))
|
||||
_, _ = rw.Write([]byte("OK"))
|
||||
})
|
||||
|
||||
w.server = &http.Server{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue