Commit 53069cea authored by 黄智's avatar 黄智

调整接口

parent f169407e
......@@ -12,7 +12,6 @@ import (
func InitPreferenceConfigRouter(e *gin.Engine) {
sys := e.Group(fmt.Sprintf("%s/sysOptions", conf.Options.Prefix), header.SetContext)
{
sys.GET("", controller.GetSystemOptions) // 获取系统首选项信息
sys.POST("licenseOpts", controller.SetLicenseOptions) // 设置授权信息
sys.POST("loginPageOpts", controller.SetLoginPageOptions) // 设置授权信息
sys.POST("safeOpts", controller.SetSafeOptions) // 设置安全选项
......@@ -21,4 +20,10 @@ func InitPreferenceConfigRouter(e *gin.Engine) {
sys.POST("reStartConfig", controller.ReStartConfig) // 一键还原受限
sys.POST("getLicenseInfo", controller.GetLicenseInfo) // 获取license信息
}
notLoginSys := e.Group(fmt.Sprintf("%s/sysOptions", conf.Options.Prefix))
{
notLoginSys.GET("", controller.GetSystemOptions) // 获取系统首选项信息
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment