mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
<edit>fixed domain disappear bugs.
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user