Просмотр исходного кода

fix(路由接口):调整路由前缀

Roc 4 лет назад
Родитель
Сommit
f036587c0e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      routers/router.go

+ 1 - 1
routers/router.go

@@ -24,7 +24,7 @@ func init() {
 		ExposeHeaders:    []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
 		ExposeHeaders:    []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
 		AllowCredentials: true,
 		AllowCredentials: true,
 	}))
 	}))
-	ns := beego.NewNamespace("/api",
+	ns := beego.NewNamespace("/h5adminapi",
 		beego.NSNamespace("/wechat",
 		beego.NSNamespace("/wechat",
 			beego.NSInclude(
 			beego.NSInclude(
 				&controllers.WeChatCommon{},
 				&controllers.WeChatCommon{},