From a527225f7f3cc93882aa870c20f0985d07d6fe92 Mon Sep 17 00:00:00 2001 From: sunty <suntianyu0923@163.com> Date: 星期四, 22 八月 2019 18:12:03 +0800 Subject: [PATCH] set yn main port 7100 --- router/router.go | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/router/router.go b/router/router.go index ac00538..24651a5 100644 --- a/router/router.go +++ b/router/router.go @@ -39,6 +39,7 @@ pollConfigController := new(controllers.PollConfigController) fileController := new(controllers.FileController) sysMenuController :=new(controllers.SysMenuController) + clusterController :=new(controllers.ClusterController) sysApi := r.Group( "/data/api-u/sys") @@ -223,6 +224,15 @@ pollCApi.GET("/getPollConfig", pollConfigController.GetPollConfig) pollCApi.POST("/updateEnable", pollConfigController.UpdateEnable) } + clusterApi := r.Group(urlPrefix+"/cluster") + { + clusterApi.GET("/randomPwd", clusterController.RandomPwd) + clusterApi.POST("/create", clusterController.Create) + clusterApi.POST("/search", clusterController.Search) + clusterApi.POST("/stopSearching", clusterController.StopSearching) + clusterApi.GET("/getSearchNodes", clusterController.GetSearchNodes) + clusterApi.POST("/joinCluster", clusterController.JoinCluster) + } // 鏂囦欢 涓婁紶 r.Static("static", "./static") // 闈欐�佹枃浠� -- Gitblit v1.8.0