Skip to content

Commit

Permalink
Comment out new routes (#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman authored Jul 12, 2024
1 parent 4378b11 commit 5e62656
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions server/server/route/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ func SetAPIRoutes(e *echo.Echo, cfgProvider *config.ConfigProviderWithRefresh, a

route.Match([]string{"GET", "POST", "PUT", "PATCH", "DELETE"}, "/*", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)

// New api paths with remove prefix. We will be switching to this but need to support both for now
e.GET("/settings", api.GetSettings(cfgProvider))
e.GET("/cluster", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)
e.GET("/system-info", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)
// New api paths with removed prefix. Need to figure out how to handle when ui and ui server are on same host
// e.GET("/settings", api.GetSettings(cfgProvider))
// e.GET("/cluster", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)
// e.GET("/system-info", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)

cluster := e.Group("/cluster")
cluster.Match([]string{"GET", "POST", "PUT", "PATCH", "DELETE"}, "/*", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)
// cluster := e.Group("/cluster")
// cluster.Match([]string{"GET", "POST", "PUT", "PATCH", "DELETE"}, "/*", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)

namespaces := e.Group("/namespaces")
namespaces.Match([]string{"GET", "POST", "PUT", "PATCH", "DELETE"}, "/*", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)
// namespaces := e.Group("/namespaces")
// namespaces.Match([]string{"GET", "POST", "PUT", "PATCH", "DELETE"}, "/*", api.TemporalAPIHandler(cfgProvider, apiMiddleware, conn), writeControlMiddleware)

return nil
}

0 comments on commit 5e62656

Please sign in to comment.