From e9d0ba14154d623898803a294a25db634a9ceec7 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期五, 23 八月 2019 11:14:30 +0800 Subject: [PATCH] add download so --- router/router.go | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/router/router.go b/router/router.go index 95b892e..97ef72f 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") @@ -123,7 +124,7 @@ task.GET("/delTaskSdk", taskController.DeleteTaskSdk) task.POST("/updateTaskName", taskController.UpdateTaskName) task.GET("/getRulesByTaskSdk", taskController.GetRulesByTaskSdk) - task.POST("/deleteTaskSdkRuleById", taskController.DeleteTaskSdkRuleById) + task.POST("/deleteTaskSdkRule", taskController.DeleteTaskSdkRule) task.POST("/saveTaskSdkRule", taskController.SaveTaskSdkRule) } @@ -224,6 +225,18 @@ pollCApi.GET("/getPollConfig", pollConfigController.GetPollConfig) pollCApi.POST("/updateEnable", pollConfigController.UpdateEnable) } + clusterApi := r.Group(urlPrefix+"/cluster") + { + clusterApi.GET("/findCluster", clusterController.FindCluster) + 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) + clusterApi.POST("/updateClusterName", clusterController.UpdateClusterName) + clusterApi.POST("/leave", clusterController.Leave) + } // 鏂囦欢 涓婁紶 r.Static("static", "./static") // 闈欐�佹枃浠� -- Gitblit v1.8.0