Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #65 from jrasell/remove-leader-protect-system
Browse files Browse the repository at this point in the history
server: remove leader protection from all system routes.
  • Loading branch information
jrasell authored Oct 9, 2019
2 parents 35f1a4b + f7ae858 commit b450ef4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ func (h *HTTPServer) setupSystemRoutes() []router.Route {

return router.Routes{
router.Route{
Name: routeSystemHealthName,
Method: http.MethodGet,
Pattern: routeSystemHealthPattern,
Handler: leaderProtectedHandler(h.clusterMember, h.routes.System.GetHealth),
Name: routeSystemHealthName,
Method: http.MethodGet,
Pattern: routeSystemHealthPattern,
HandlerFunc: h.routes.System.GetHealth,
},
router.Route{
Name: routeSystemInfoName,
Method: http.MethodGet,
Pattern: routeSystemInfoPattern,
Handler: leaderProtectedHandler(h.clusterMember, h.routes.System.GetInfo),
Name: routeSystemInfoName,
Method: http.MethodGet,
Pattern: routeSystemInfoPattern,
HandlerFunc: h.routes.System.GetInfo,
},
router.Route{
Name: routeGetMetricsName,
Expand Down

0 comments on commit b450ef4

Please sign in to comment.