From 30bb75a2dec4ea869c7bbf2d4c6a2a7068c1a454 Mon Sep 17 00:00:00 2001 From: Buriburizaem0n <18139893731@163.com> Date: Sat, 13 Sep 2025 13:54:49 +0800 Subject: [PATCH] fixed domain disappear bugs. --- cmd/dashboard/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dashboard/controller/controller.go b/cmd/dashboard/controller/controller.go index 19ee2f3..b09d11d 100644 --- a/cmd/dashboard/controller/controller.go +++ b/cmd/dashboard/controller/controller.go @@ -75,6 +75,7 @@ func routers(r *gin.Engine, frontendDist fs.FS) { optionalAuth.GET("/service", commonHandler(showService)) optionalAuth.GET("/service/:id", commonHandler(listServiceHistory)) optionalAuth.GET("/service/server", commonHandler(listServerWithServices)) + optionalAuth.GET("/domains", commonHandler(GetDomainList)) auth := api.Group("", authMw) @@ -151,7 +152,6 @@ func routers(r *gin.Engine, frontendDist fs.FS) { auth.PATCH("/setting", adminHandler(updateConfig)) - auth.GET("/domains", commonHandler(GetDomainList)) auth.POST("/domains", commonHandler(AddDomain)) auth.POST("/domains/:id/verify", commonHandler(VerifyDomain)) auth.PUT("/domains/:id", commonHandler(UpdateDomain))