Added cluster/leader endpoint

This commit is contained in:
Alex Antonov 2018-03-22 13:00:05 -04:00 committed by Traefiker Bot
parent 0fa0c2256a
commit 9699dc2a85
3 changed files with 55 additions and 0 deletions

View file

@ -739,6 +739,9 @@ func (s *Server) addInternalRoutes(entryPointName string, router *mux.Router) {
if s.globalConfiguration.API != nil && s.globalConfiguration.API.EntryPoint == entryPointName {
s.globalConfiguration.API.AddRoutes(router)
if s.leadership != nil {
s.leadership.AddRoutes(router)
}
}
}