From 8b01126e0f986d8a5ef45a1e34759091af4f2b44 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Thu, 22 Jul 2021 23:03:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=F0=9F=90=9B:=20=E4=BF=AE=E5=A4=8Dcreateapp?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E9=97=AE=E9=A2=98(#493)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/router.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/router.template b/template/router.template index 16cb45a9..010bb03e 100644 --- a/template/router.template +++ b/template/router.template @@ -60,7 +60,7 @@ func InitBusinessRouter(r *gin.Engine, authMiddleware *jwt.GinJWTMiddleware) *gi // noCheckRoleRouter 无需认证的路由 func noCheckRoleRouter(r *gin.Engine) { // 可根据业务需求来设置接口版本 - v := r.Group("") + v := r.Group("/api/v1") for _, f := range routerNoCheckRole { f(v) @@ -70,7 +70,7 @@ func noCheckRoleRouter(r *gin.Engine) { // checkRoleRouter 需要认证的路由 func checkRoleRouter(r *gin.Engine, authMiddleware *jwtauth.GinJWTMiddleware) { // 可根据业务需求来设置接口版本 - v := r.Group("") + v := r.Group("/api/v1") for _, f := range routerCheckRole { f(v, authMiddleware)