fix(handler): fixed health check import and corrected code for new metrics api handler

This commit is contained in:
yusing
2025-08-17 20:24:42 +08:00
parent 1c7e3e42f8
commit baf5b5eff1
2 changed files with 21 additions and 3 deletions

View File

@@ -9,11 +9,10 @@ import (
"strings"
"github.com/yusing/go-proxy/internal/types"
"github.com/yusing/go-proxy/internal/watcher/health"
"github.com/yusing/go-proxy/internal/watcher/health/monitor"
)
var defaultHealthConfig = health.DefaultHealthConfig()
var defaultHealthConfig = types.DefaultHealthConfig()
func CheckHealth(w http.ResponseWriter, r *http.Request) {
query := r.URL.Query()