mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-02 06:42:47 +00:00
Add repo branches endpoint (#481)
* add repo branches endpoint * add branches func to remotes
This commit is contained in:
@@ -57,6 +57,8 @@ func apiRoutes(e *gin.Engine) {
|
||||
repo.POST("", session.MustRepoAdmin(), api.PostRepo)
|
||||
repo.GET("", api.GetRepo)
|
||||
|
||||
repo.GET("/branches", api.GetRepoBranches)
|
||||
|
||||
repo.GET("/builds", api.GetBuilds)
|
||||
repo.GET("/builds/:number", api.GetBuild)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user