Skip to content

Commit

Permalink
enhance(router/pipeline): change expand, validate, and compile to Mus…
Browse files Browse the repository at this point in the history
…tRead (#674)

* refactor(router/pipeline): change expand to MustRead

* adding validate to the mustread party

* adding compile to mustread party
  • Loading branch information
ecrupper authored Jul 18, 2022
1 parent d475046 commit 9b27b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions router/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ func PipelineHandlers(base *gin.RouterGroup) {
_pipeline.PUT("", perm.MustWrite(), pipeline.UpdatePipeline)
_pipeline.DELETE("", perm.MustPlatformAdmin(), pipeline.DeletePipeline)
_pipeline.GET("/templates", perm.MustRead(), pipeline.GetTemplates)
_pipeline.POST("/compile", perm.MustWrite(), pipeline.CompilePipeline)
_pipeline.POST("/expand", perm.MustWrite(), pipeline.ExpandPipeline)
_pipeline.POST("/validate", perm.MustWrite(), pipeline.ValidatePipeline)
_pipeline.POST("/compile", perm.MustRead(), pipeline.CompilePipeline)
_pipeline.POST("/expand", perm.MustRead(), pipeline.ExpandPipeline)
_pipeline.POST("/validate", perm.MustRead(), pipeline.ValidatePipeline)
} // end of pipeline endpoints
} // end of pipelines endpoints
}

0 comments on commit 9b27b07

Please sign in to comment.