<add>domain support

This commit is contained in:
2025-09-12 15:30:07 +00:00
parent b6fed87d61
commit 6c291c0121
14 changed files with 654 additions and 534 deletions

View File

@@ -151,6 +151,12 @@ 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))
auth.DELETE("/domains/:id", commonHandler(DeleteDomain))
r.NoRoute(fallbackToFrontend(frontendDist))
}