Add service API handler stubs for status, stop and restart (#3417)

This commit is contained in:
Krishnan Parthasarathi
2016-12-16 11:56:15 +05:30
committed by Harshavardhana
parent 8ceb969445
commit b2f920a868
11 changed files with 655 additions and 28 deletions

View File

@@ -110,6 +110,12 @@ func configureServerHandler(srvCmdConfig serverCmdConfig) (http.Handler, error)
registerDistXLRouters(mux, srvCmdConfig)
}
// Add Admin RPC router
err := registerAdminRPCRouter(mux)
if err != nil {
return nil, err
}
// Register web router when its enabled.
if globalIsBrowserEnabled {
if err := registerWebRouter(mux); err != nil {
@@ -117,6 +123,9 @@ func configureServerHandler(srvCmdConfig serverCmdConfig) (http.Handler, error)
}
}
// Add Admin router.
registerAdminRouter(mux)
// Add API router.
registerAPIRouter(mux)