From 5ca1dd98d8b27290db04808513215792e8b95ad8 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 25 Sep 2024 14:33:44 +0800 Subject: [PATCH] 1 --- api/router/router.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/api/router/router.go b/api/router/router.go index 1aa1617..21203aa 100644 --- a/api/router/router.go +++ b/api/router/router.go @@ -79,6 +79,16 @@ func publicRouter(r *gin.Engine, api controller.Api) { // 验证码 adminGroup.GET("/captcha", api.Public.GetCaptcha) + + systemGroup := adminGroup.Group("/system") + { + // 编辑器配置 + editorGroup := systemGroup.Group("/editor") + { + // 编辑器-获取配置 + editorGroup.GET("", api.Editor.GetEditorConfig) + } + } } // adminRouter 公共路由-验证权限 @@ -275,9 +285,6 @@ func privateRouter(r *gin.Engine, api controller.Api) { // 编辑器配置 editorGroup := systemGroup.Group("/editor") { - // 编辑器-获取配置 - editorGroup.GET("", api.Editor.GetEditorConfig) - // 编辑器-上传 editorGroup.POST("", api.Editor.EditorUpload) }