🆕新增接口控制服务端、命令控制服务端
This commit is contained in:
@@ -9,7 +9,8 @@ import (
|
||||
func ServerApi(r *gin.RouterGroup) {
|
||||
apiGroup := r.Group("server", middleware.Authorization())
|
||||
{
|
||||
apiGroup.GET("", api.Server().GetServer) // 获取服务端信息
|
||||
apiGroup.POST("", middleware.Permission(), api.Server().SaveServer) // 新增/更新服务端信息
|
||||
apiGroup.GET("", api.Server().GetServer) // 获取服务端信息
|
||||
apiGroup.POST("", middleware.Permission(), api.Server().SaveServer) // 新增/更新服务端信息
|
||||
apiGroup.POST("control-server", middleware.Permission(), api.Server().ControlServer) // 服务端操作控制
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user