Skip to content

Commit

Permalink
fix: reused swagger definition
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Jan 3, 2025
1 parent 34b2df3 commit e8e675e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func Load(options ...gin.HandlerFunc) *gin.Engine {
// Status endpoints
status := r.Group("/status/:org/:repo", org.Establish(), repo.Establish())
{
status.GET("", org.Establish(), repo.Establish(), apiRepo.GetStatus)
status.GET("/:build", org.Establish(), repo.Establish(), build.Establish(), apiBuild.GetStatus)
status.GET("", org.Establish(), repo.Establish(), apiRepo.GetRepoStatus)
status.GET("/:build", org.Establish(), repo.Establish(), build.Establish(), apiBuild.GetBuildStatus)
}

// Health endpoint
Expand Down

0 comments on commit e8e675e

Please sign in to comment.