From cebbcdee4a0fb58d0b4d261b8a3e383268f1f9f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A2=A8=E9=9B=AA?= Date: Mon, 17 Aug 2026 21:29:01 +0800 Subject: [PATCH] feat: wire registerPanelSettingsRoutes --- backend/internal/router/router.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/internal/router/router.go b/backend/internal/router/router.go index 3beba26..e2ed4f1 100644 --- a/backend/internal/router/router.go +++ b/backend/internal/router/router.go @@ -53,6 +53,7 @@ func SetupRouterWithDeps(d Deps) *gin.Engine { RegisterAccessTokenRoutes(apiV1, d) registerDashboardRoute(apiV1, d) + registerPanelSettingsRoutes(apiV1, d) system.NewHandler(d.systemService()).WithBackupPaths(cfg.Database.Path, cfg.Mihomo.Config).RegisterRoutes(apiV1.Group("/system")) registerMihomoRoutes(apiV1, d) @@ -61,12 +62,9 @@ func SetupRouterWithDeps(d Deps) *gin.Engine { telegram.NewHandler(db).RegisterRoutes(apiV1.Group("/telegram")) cluster.NewHandler(cluster.NewService(db)).RegisterRoutes(apiV1.Group("/cluster")) - // Prefer listener.Handler: includes templates, versions, batch, clone. - // Static paths (/templates, /batch) are registered before /:id. if d.listenerService() != nil { - lh := listener.NewHandler(d.listenerService()) - lh.RegisterRoutes(apiV1.Group("/nodes")) - lh.RegisterRoutes(apiV1.Group("/listeners")) + listener.NewHandler(d.listenerService()).RegisterRoutes(apiV1.Group("/nodes")) + listener.NewHandler(d.listenerService()).RegisterRoutes(apiV1.Group("/listeners")) } else { nodeHandler := node.NewHandler(d.nodeService(), d.userService(), db) nodeHandler.RegisterRoutes(apiV1.Group("/nodes"))