mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-18 23:18:32 +00:00
Add DeletePipeline API (#3506)
This is just a first step, the final goal is to have an API endpoint to prune Repo Pipelines older than the given date. @woodpecker-ci/maintainers Can I get some feedback if this is the right direction? --------- Co-authored-by: 6543 <m.huber@kithara.com>
This commit is contained in:
@@ -94,6 +94,7 @@ func apiRoutes(e *gin.RouterGroup) {
|
||||
|
||||
repo.GET("/pipelines", api.GetPipelines)
|
||||
repo.POST("/pipelines", session.MustPush, api.CreatePipeline)
|
||||
repo.DELETE("/pipelines/:number", session.MustRepoAdmin(), api.DeletePipeline)
|
||||
repo.GET("/pipelines/:number", api.GetPipeline)
|
||||
repo.GET("/pipelines/:number/config", api.GetPipelineConfig)
|
||||
|
||||
|
Reference in New Issue
Block a user