| | |
| | | pollConfigController := new(controllers.PollConfigController) |
| | | fileController := new(controllers.FileController) |
| | | sysMenuController :=new(controllers.SysMenuController) |
| | | clusterController :=new(controllers.ClusterController) |
| | | |
| | | |
| | | sysApi := r.Group( "/data/api-u/sys") |
| | |
| | | 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") // 静态文件 |