Skip to content

Commit

Permalink
refactor(deployments): remove unsupported endpoints (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockopp authored Apr 27, 2020
1 parent 1e3b43d commit 44853d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions api/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
4 changes: 0 additions & 4 deletions router/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@ 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")
{
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
}

0 comments on commit 44853d7

Please sign in to comment.