feat: debug api

This commit is contained in:
yusing
2025-04-13 06:17:41 +08:00
parent fdbf1ad787
commit 1eac48e899
8 changed files with 192 additions and 40 deletions

View File

@@ -7,6 +7,7 @@ import (
"sync"
"github.com/yusing/go-proxy/internal/api/v1/auth"
debugapi "github.com/yusing/go-proxy/internal/api/v1/debug"
"github.com/yusing/go-proxy/internal/api/v1/query"
"github.com/yusing/go-proxy/internal/common"
"github.com/yusing/go-proxy/internal/config"
@@ -146,6 +147,8 @@ func main() {
uptime.Poller.Start()
config.WatchChanges()
debugapi.StartServer(cfg)
task.WaitExit(cfg.Value().TimeoutShutdown)
}