<edit>fixed domain disappear bugs.

This commit is contained in:
2025-09-13 13:54:49 +08:00
parent 1c11637e43
commit 30bb75a2de

View File

@@ -75,6 +75,7 @@ func routers(r *gin.Engine, frontendDist fs.FS) {
optionalAuth.GET("/service", commonHandler(showService)) optionalAuth.GET("/service", commonHandler(showService))
optionalAuth.GET("/service/:id", commonHandler(listServiceHistory)) optionalAuth.GET("/service/:id", commonHandler(listServiceHistory))
optionalAuth.GET("/service/server", commonHandler(listServerWithServices)) optionalAuth.GET("/service/server", commonHandler(listServerWithServices))
optionalAuth.GET("/domains", commonHandler(GetDomainList))
auth := api.Group("", authMw) auth := api.Group("", authMw)
@@ -151,7 +152,6 @@ func routers(r *gin.Engine, frontendDist fs.FS) {
auth.PATCH("/setting", adminHandler(updateConfig)) auth.PATCH("/setting", adminHandler(updateConfig))
auth.GET("/domains", commonHandler(GetDomainList))
auth.POST("/domains", commonHandler(AddDomain)) auth.POST("/domains", commonHandler(AddDomain))
auth.POST("/domains/:id/verify", commonHandler(VerifyDomain)) auth.POST("/domains/:id/verify", commonHandler(VerifyDomain))
auth.PUT("/domains/:id", commonHandler(UpdateDomain)) auth.PUT("/domains/:id", commonHandler(UpdateDomain))