From 53069ceac67af451d5fabd2bf78de02ccad0b1c6 Mon Sep 17 00:00:00 2001 From: HuangZhi Date: Wed, 12 Jul 2023 14:46:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/systempreferencerouter.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/router/systempreferencerouter.go b/src/router/systempreferencerouter.go index b1ca51b..fc3fa84 100644 --- a/src/router/systempreferencerouter.go +++ b/src/router/systempreferencerouter.go @@ -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) // 获取系统首选项信息 + + } } -- 2.26.0