@@ -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