cloudapi: Fix the href of the delete response

Originally it was going to include /delete/ in the path. It was removed
in the openapi yaml but not in the result from deleteComposeImpl.
This commit is contained in:
Brian C. Lane 2025-06-13 15:17:59 -07:00 committed by Achilleas Koutsou
parent 07d34f339c
commit 60c5f10af8

View file

@ -353,7 +353,7 @@ func (h *apiHandlers) deleteComposeImpl(ctx echo.Context, jobId uuid.UUID) error
} }
return ctx.JSON(http.StatusOK, ComposeDeleteStatus{ return ctx.JSON(http.StatusOK, ComposeDeleteStatus{
Href: fmt.Sprintf("/api/image-builder-composer/v2/composes/delete/%v", jobId), Href: fmt.Sprintf("/api/image-builder-composer/v2/composes/%v", jobId),
Id: jobId.String(), Id: jobId.String(),
Kind: "ComposeDeleteStatus", Kind: "ComposeDeleteStatus",
}) })