server: Apply review comments and split basic handler

This commit is contained in:
Marek Siarkowicz
2022-02-25 14:54:57 +01:00
parent fb361e43f0
commit 26f42e7a9e
4 changed files with 11 additions and 11 deletions

View File

@ -992,7 +992,8 @@ func (m *Member) Launch() error {
}
for _, ln := range m.ClientListeners {
handler := http.NewServeMux()
etcdhttp.HandleBasic(m.Logger, handler, m.Server)
etcdhttp.HandleDebug(handler)
etcdhttp.HandleVersion(handler, m.Server)
etcdhttp.HandleMetrics(handler)
etcdhttp.HandleHealth(m.Logger, handler, m.Server)
hs := &httptest.Server{