diff --git a/api/deployment.go b/api/deployment.go index 4ebdcd003..6c8a90f6a 100644 --- a/api/deployment.go +++ b/api/deployment.go @@ -27,15 +27,3 @@ func GetDeployments(c *gin.Context) { func GetDeployment(c *gin.Context) { c.JSON(http.StatusNotImplemented, "The server does not support the functionality required to fulfill the request.") } - -// UpdateDeployment represents the API handler to -// update a deployment in the configured backend. -func UpdateDeployment(c *gin.Context) { - c.JSON(http.StatusNotImplemented, "The server does not support the functionality required to fulfill the request.") -} - -// DeleteDeployment represents the API handler to -// remove a deployment from the configured backend. -func DeleteDeployment(c *gin.Context) { - c.JSON(http.StatusNotImplemented, "The server does not support the functionality required to fulfill the request.") -} diff --git a/router/deployment.go b/router/deployment.go index c48c4759e..332fd54cc 100644 --- a/router/deployment.go +++ b/router/deployment.go @@ -16,8 +16,6 @@ import ( // POST /api/v1/deployments/:org/:repo // GET /api/v1/deployments/:org/:repo // GET /api/v1/deployments/:org/:repo/:deployment -// PUT /api/v1/deployments/:org/:repo/:deployment -// DELETE /api/v1/deployments/:org/:repo/:deployment func DeploymentHandlers(base *gin.RouterGroup) { // Deployments endpoints deployments := base.Group("/deployments/:org/:repo") @@ -25,7 +23,5 @@ func DeploymentHandlers(base *gin.RouterGroup) { deployments.POST("", perm.MustAdmin(), api.CreateDeployment) deployments.GET("", perm.MustAdmin(), api.GetDeployments) deployments.GET("/:deployment", perm.MustAdmin(), api.GetDeployment) - deployments.PUT("/:deployment", perm.MustAdmin(), api.UpdateDeployment) - deployments.DELETE("/:deployment", perm.MustAdmin(), api.DeleteDeployment) } // end of deployments endpoints }