From f4e8f206a6760bdc31734dfcb1c65916b5b76311 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 22 八月 2019 12:05:58 +0800
Subject: [PATCH] add cluster

---
 router/router.go |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/router/router.go b/router/router.go
index ac00538..151d3d9 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,14 @@
 		pollCApi.GET("/getPollConfig", pollConfigController.GetPollConfig)
 		pollCApi.POST("/updateEnable", pollConfigController.UpdateEnable)
 	}
+	clusterApi := r.Group(urlPrefix+"/cluster")
+	{
+		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