From fc73a6c806790f2915f0385acf20d591d5bff0ed Mon Sep 17 00:00:00 2001 From: workabee <2950914812@qq.com> Date: Fri, 23 Feb 2024 15:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/router/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/router/router.go b/pkg/router/router.go index 12b826b..36c3fbd 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -18,7 +18,7 @@ func NewRouter() *gin.Engine { r.Use(gzip.Gzip(gzip.DefaultCompression)) //加入日志中间件,跨域中间件 r.Use(middleware.NewLogger(), middleware.Cors(), middleware.GinRecovery(true)) - auth := r.Group("") + auth := r.Group("/api") //auth.Use(middleware.JWTAuthMiddleware()) // 上传 upload := auth.Group("upload")