2023-11-27 04:04:09 +00:00
|
|
|
package router
|
|
|
|
|
|
|
|
import (
|
|
|
|
v1 "github.com/1Panel-dev/1Panel/backend/app/api/v1"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
2023-12-20 14:44:09 +00:00
|
|
|
type WebsiteCARouter struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *WebsiteCARouter) InitRouter(Router *gin.RouterGroup) {
|
2023-11-27 04:04:09 +00:00
|
|
|
groupRouter := Router.Group("websites/ca")
|
|
|
|
|
|
|
|
baseApi := v1.ApiGroupApp.BaseApi
|
|
|
|
{
|
|
|
|
groupRouter.POST("/search", baseApi.PageWebsiteCA)
|
|
|
|
groupRouter.POST("", baseApi.CreateWebsiteCA)
|
|
|
|
groupRouter.POST("/del", baseApi.DeleteWebsiteCA)
|
|
|
|
groupRouter.POST("/obtain", baseApi.ObtainWebsiteCA)
|
2023-11-27 10:36:10 +00:00
|
|
|
groupRouter.POST("/renew", baseApi.RenewWebsiteCA)
|
2023-11-29 08:12:09 +00:00
|
|
|
groupRouter.GET("/:id", baseApi.GetWebsiteCA)
|
2024-07-04 08:02:34 +00:00
|
|
|
groupRouter.POST("/download", baseApi.DownloadCAFile)
|
2023-11-27 04:04:09 +00:00
|
|
|
}
|
|
|
|
}
|