mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-21 13:17:48 +08:00
35 lines
1.3 KiB
Go
35 lines
1.3 KiB
Go
package router
|
|
|
|
import (
|
|
v2 "github.com/1Panel-dev/1Panel/core/app/api/v2"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type SettingRouter struct{}
|
|
|
|
func (s *SettingRouter) InitRouter(Router *gin.RouterGroup) {
|
|
settingRouter := Router.Group("settings")
|
|
baseApi := v2.ApiGroupApp.BaseApi
|
|
{
|
|
settingRouter.POST("/search", baseApi.GetSettingInfo)
|
|
settingRouter.POST("/expired/handle", baseApi.HandlePasswordExpired)
|
|
settingRouter.GET("/search/available", baseApi.GetSystemAvailable)
|
|
settingRouter.POST("/update", baseApi.UpdateSetting)
|
|
settingRouter.GET("/interface", baseApi.LoadInterfaceAddr)
|
|
settingRouter.POST("/menu/update", baseApi.UpdateMenu)
|
|
settingRouter.POST("/proxy/update", baseApi.UpdateProxy)
|
|
settingRouter.POST("/bind/update", baseApi.UpdateBindInfo)
|
|
settingRouter.POST("/port/update", baseApi.UpdatePort)
|
|
settingRouter.POST("/ssl/update", baseApi.UpdateSSL)
|
|
settingRouter.GET("/ssl/info", baseApi.LoadFromCert)
|
|
settingRouter.POST("/ssl/download", baseApi.DownloadSSL)
|
|
settingRouter.POST("/password/update", baseApi.UpdatePassword)
|
|
settingRouter.POST("/mfa", baseApi.LoadMFA)
|
|
settingRouter.POST("/mfa/bind", baseApi.MFABind)
|
|
|
|
settingRouter.POST("/upgrade", baseApi.Upgrade)
|
|
settingRouter.POST("/upgrade/notes", baseApi.GetNotesByVersion)
|
|
settingRouter.GET("/upgrade", baseApi.GetUpgradeInfo)
|
|
}
|
|
}
|