Skip to content

Commit 7a50fd2

Browse files
authored
temporarly disable api versioning (#226)
* chore: temporarly disable api versioning * chore: cleanup database migration 01 & 02 * Revert "chore: cleanup database migration 01 & 02" This reverts commit e26c871.
1 parent 992cbce commit 7a50fd2

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

pkg/server/main.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,27 +86,27 @@ func (s *Server) Run() {
8686
r.GET("/api/ping", Ping)
8787
r.GET("/api/about", About)
8888

89-
api := r.Group("/api/alpha/pipeline")
89+
api := r.Group("/api/pipeline")
9090
if strings.ToLower(s.Options.Auth.Mode) == "oauth" {
9191
logrus.Debugf("Using OAuth authentication mode: %s", s.Options.Auth.Mode)
9292
api.Use(checkJWT())
9393
}
9494

95-
r.GET("/api/alpha/pipeline/scms", ListSCMs)
96-
r.GET("/api/alpha/pipeline/reports", ListPipelineReports)
97-
r.POST("/api/alpha/pipeline/reports/search", SearchPipelineReports)
98-
r.GET("/api/alpha/pipeline/reports/:id", GetPipelineReportByID)
99-
r.GET("/api/alpha/pipeline/config/kinds", SearchConfigKinds)
100-
r.GET("/api/alpha/pipeline/config/sources", ListConfigSources)
101-
r.POST("/api/alpha/pipeline/config/sources/search", SearchConfigSources)
102-
r.GET("/api/alpha/pipeline/config/conditions", ListConfigConditions)
103-
r.POST("/api/alpha/pipeline/config/conditions/search", SearchConfigConditions)
104-
r.GET("/api/alpha/pipeline/config/targets", ListConfigTargets)
105-
r.POST("/api/alpha/pipeline/config/targets/search", SearchConfigTargets)
95+
r.GET("/api/pipeline/scms", ListSCMs)
96+
r.GET("/api/pipeline/reports", ListPipelineReports)
97+
r.POST("/api/pipeline/reports/search", SearchPipelineReports)
98+
r.GET("/api/pipeline/reports/:id", GetPipelineReportByID)
99+
r.GET("/api/pipeline/config/kinds", SearchConfigKinds)
100+
r.GET("/api/pipeline/config/sources", ListConfigSources)
101+
r.POST("/api/pipeline/config/sources/search", SearchConfigSources)
102+
r.GET("/api/pipeline/config/conditions", ListConfigConditions)
103+
r.POST("/api/pipeline/config/conditions/search", SearchConfigConditions)
104+
r.GET("/api/pipeline/config/targets", ListConfigTargets)
105+
r.POST("/api/pipeline/config/targets/search", SearchConfigTargets)
106106
if !s.Options.DryRun {
107-
r.POST("/api/alpha/pipeline/reports", CreatePipelineReport)
108-
r.PUT("/api/alpha/pipeline/reports/:id", UpdatePipelineReport)
109-
r.DELETE("/api/alpha/pipeline/reports/:id", DeletePipelineReport)
107+
r.POST("/api/pipeline/reports", CreatePipelineReport)
108+
r.PUT("/api/pipeline/reports/:id", UpdatePipelineReport)
109+
r.DELETE("/api/pipeline/reports/:id", DeletePipelineReport)
110110
}
111111

112112
// listen and server on 0.0.0.0:8080

0 commit comments

Comments
 (0)