From 144b324c5f8b4038ca2809de90905dabbcae9e42 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 27 Oct 2023 09:59:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B3=BB=E7=BB=9F=E5=8F=AF=E6=9A=B4?= =?UTF-8?q?=E9=9C=B2=E7=9A=84=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/common/common.go | 4 +++- src/modules/common/controller/common.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/common/common.go b/src/modules/common/common.go index 13f0b9cf..ffdec896 100644 --- a/src/modules/common/common.go +++ b/src/modules/common/common.go @@ -23,6 +23,9 @@ func Setup(router *gin.Engine) { controller.NewIndex.Handler, ) + // 系统可暴露的配置信息 + indexGroup.GET("/sys-conf", controller.NewCommont.SysConfig) + // 验证码操作处理 indexGroup.GET("/captchaImage", middleware.RateLimit(middleware.LimitOption{ @@ -71,7 +74,6 @@ func Setup(router *gin.Engine) { commonGroup := router.Group("/common") { commonGroup.GET("/hash", middleware.PreAuthorize(nil), controller.NewCommont.Hash) - indexGroup.GET("/sysConf", controller.NewCommont.SysConfig) } // 文件操作处理 diff --git a/src/modules/common/controller/common.go b/src/modules/common/controller/common.go index 0e677f83..8975ced0 100644 --- a/src/modules/common/controller/common.go +++ b/src/modules/common/controller/common.go @@ -28,7 +28,7 @@ func (s *CommontController) Hash(c *gin.Context) { // 系统可暴露的配置信息 // -// GET /sysConf +// GET /sys-conf func (s *CommontController) SysConfig(c *gin.Context) { data := s.commontService.SystemConfigInfo() c.JSON(200, result.OkData(data))