Browse Source

Merge branch 'eta/1.7.6' into debug

Roc 11 months ago
parent
commit
d949e0fc7c
1 changed files with 9 additions and 1 deletions
  1. 9 1
      routers/router.go

+ 9 - 1
routers/router.go

@@ -42,7 +42,15 @@ func init() {
 		ExposeHeaders:    []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
 		AllowCredentials: true,
 	}))
-	ns := web.NewNamespace("/adminapi",
+	ns := web.NewNamespace("/v1",
+		web.NSNamespace("/ppt",
+			web.NSInclude(
+				&controllers.PptController{},
+			),
+			web.NSInclude(
+				&controllers.PptCommonController{},
+			),
+		),
 		web.NSNamespace("/sysuser",
 			web.NSInclude(
 				&controllers.SysUserController{},