mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
refactor: migrate to new cosy
This commit is contained in:
parent
6082aef5d5
commit
33a996e777
111 changed files with 1163 additions and 1772 deletions
|
@ -14,3 +14,12 @@ func InitRouter(r *gin.RouterGroup) {
|
|||
r.POST("auto_cert/:name", AddDomainToAutoCert)
|
||||
r.DELETE("auto_cert/:name", RemoveDomainFromAutoCert)
|
||||
}
|
||||
|
||||
func InitCategoryRouter(r *gin.RouterGroup) {
|
||||
r.GET("site_categories", GetCategoryList)
|
||||
r.GET("site_category/:id", GetCategory)
|
||||
r.POST("site_category", AddCategory)
|
||||
r.PUT("site_category/:id", ModifyCategory)
|
||||
r.DELETE("site_category/:id", DeleteCategory)
|
||||
r.POST("site_category/:id/recover", RecoverCategory)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue