|
|
@ -93,8 +93,12 @@ func configureServerHandler(endpointServerPools EndpointServerPools) (http.Handl |
|
|
|
registerDistErasureRouters(router, endpointServerPools) |
|
|
|
registerDistErasureRouters(router, endpointServerPools) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Add STS router always.
|
|
|
|
// Register web router when its enabled.
|
|
|
|
registerSTSRouter(router) |
|
|
|
if globalBrowserEnabled { |
|
|
|
|
|
|
|
if err := registerWebRouter(router); err != nil { |
|
|
|
|
|
|
|
return nil, err |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Add Admin router, all APIs are enabled in server mode.
|
|
|
|
// Add Admin router, all APIs are enabled in server mode.
|
|
|
|
registerAdminRouter(router, true, true) |
|
|
|
registerAdminRouter(router, true, true) |
|
|
@ -105,12 +109,8 @@ func configureServerHandler(endpointServerPools EndpointServerPools) (http.Handl |
|
|
|
// Add server metrics router
|
|
|
|
// Add server metrics router
|
|
|
|
registerMetricsRouter(router) |
|
|
|
registerMetricsRouter(router) |
|
|
|
|
|
|
|
|
|
|
|
// Register web router when its enabled.
|
|
|
|
// Add STS router always.
|
|
|
|
if globalBrowserEnabled { |
|
|
|
registerSTSRouter(router) |
|
|
|
if err := registerWebRouter(router); err != nil { |
|
|
|
|
|
|
|
return nil, err |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add API router
|
|
|
|
// Add API router
|
|
|
|
registerAPIRouter(router) |
|
|
|
registerAPIRouter(router) |
|
|
|