Merge pull request 'missing submit to delete routes' (#46) from zhouqunjie/pcm-coordinator:master into master

Former-commit-id: bd1a46df12d93131ecc2f491efb498d82eddc5a4
This commit is contained in:
zhouqunjie 2024-03-12 16:56:29 +08:00
commit 1dfff160ae
1 changed files with 6 additions and 11 deletions

View File

@ -39,11 +39,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/core/commitTask",
Handler: core.CommitTaskHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/core/commitHpcTask",
Handler: core.CommitHpcTaskHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/core/commitVmTask",
@ -79,11 +74,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/core/listCluster/:centerId",
Handler: core.ListClusterHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/core/submitJob",
Handler: core.SubmitJobHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/core/getRegion",
@ -140,6 +130,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodPost,
Path: "/hpc/commitHpcTask",
Handler: hpc.CommitHpcTaskHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/hpc/listJob",
@ -152,7 +147,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
},
{
Method: http.MethodGet,
Path: "/queue/assets",
Path: "/hpc/queueAssets",
Handler: hpc.QueueAssetsHandler(serverCtx),
},
},