2022-11-11 09:41:39 +00:00
|
|
|
package router
|
|
|
|
|
|
|
|
import (
|
|
|
|
v1 "github.com/1Panel-dev/1Panel/backend/app/api/v1"
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/middleware"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
type WebsiteSSLRouter struct {
|
|
|
|
}
|
|
|
|
|
2023-12-20 14:44:09 +00:00
|
|
|
func (a *WebsiteSSLRouter) InitRouter(Router *gin.RouterGroup) {
|
2022-11-11 09:41:39 +00:00
|
|
|
groupRouter := Router.Group("websites/ssl")
|
2023-03-11 09:51:42 +00:00
|
|
|
groupRouter.Use(middleware.JwtAuth()).Use(middleware.SessionAuth()).Use(middleware.PasswordExpired())
|
2022-11-11 09:41:39 +00:00
|
|
|
|
|
|
|
baseApi := v1.ApiGroupApp.BaseApi
|
|
|
|
{
|
2022-11-16 02:31:35 +00:00
|
|
|
groupRouter.POST("/search", baseApi.PageWebsiteSSL)
|
|
|
|
groupRouter.POST("", baseApi.CreateWebsiteSSL)
|
|
|
|
groupRouter.POST("/resolve", baseApi.GetDNSResolve)
|
2022-12-23 03:08:28 +00:00
|
|
|
groupRouter.POST("/del", baseApi.DeleteWebsiteSSL)
|
2022-12-29 06:55:20 +00:00
|
|
|
groupRouter.GET("/website/:websiteId", baseApi.GetWebsiteSSLByWebsiteId)
|
|
|
|
groupRouter.GET("/:id", baseApi.GetWebsiteSSLById)
|
2023-03-21 06:42:50 +00:00
|
|
|
groupRouter.POST("/update", baseApi.UpdateWebsiteSSL)
|
2023-10-31 08:01:50 +00:00
|
|
|
groupRouter.POST("/upload", baseApi.UploadWebsiteSSL)
|
2023-11-20 02:44:10 +00:00
|
|
|
groupRouter.POST("/obtain", baseApi.ApplyWebsiteSSL)
|
2023-11-28 09:27:31 +00:00
|
|
|
groupRouter.POST("/download", baseApi.DownloadWebsiteSSL)
|
2022-11-11 09:41:39 +00:00
|
|
|
}
|
|
|
|
}
|