missing submit to delete routes
Former-commit-id: a624db840186bdaa2a7237421e01a96d96e5e27e
This commit is contained in:
parent
9824a3e38a
commit
aa6b343f34
|
@ -39,11 +39,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||||
Path: "/core/commitTask",
|
Path: "/core/commitTask",
|
||||||
Handler: core.CommitTaskHandler(serverCtx),
|
Handler: core.CommitTaskHandler(serverCtx),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Method: http.MethodPost,
|
|
||||||
Path: "/core/commitHpcTask",
|
|
||||||
Handler: core.CommitHpcTaskHandler(serverCtx),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Method: http.MethodPost,
|
Method: http.MethodPost,
|
||||||
Path: "/core/commitVmTask",
|
Path: "/core/commitVmTask",
|
||||||
|
@ -79,11 +74,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||||
Path: "/core/listCluster/:centerId",
|
Path: "/core/listCluster/:centerId",
|
||||||
Handler: core.ListClusterHandler(serverCtx),
|
Handler: core.ListClusterHandler(serverCtx),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Method: http.MethodPost,
|
|
||||||
Path: "/core/submitJob",
|
|
||||||
Handler: core.SubmitJobHandler(serverCtx),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Method: http.MethodGet,
|
Method: http.MethodGet,
|
||||||
Path: "/core/getRegion",
|
Path: "/core/getRegion",
|
||||||
|
@ -140,6 +130,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||||
|
|
||||||
server.AddRoutes(
|
server.AddRoutes(
|
||||||
[]rest.Route{
|
[]rest.Route{
|
||||||
|
{
|
||||||
|
Method: http.MethodPost,
|
||||||
|
Path: "/hpc/commitHpcTask",
|
||||||
|
Handler: hpc.CommitHpcTaskHandler(serverCtx),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Method: http.MethodGet,
|
Method: http.MethodGet,
|
||||||
Path: "/hpc/listJob",
|
Path: "/hpc/listJob",
|
||||||
|
@ -152,7 +147,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Method: http.MethodGet,
|
Method: http.MethodGet,
|
||||||
Path: "/queue/assets",
|
Path: "/hpc/queueAssets",
|
||||||
Handler: hpc.QueueAssetsHandler(serverCtx),
|
Handler: hpc.QueueAssetsHandler(serverCtx),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue