mirror of https://github.com/linkerd/linkerd2.git
Remove unused web routes and helper (#356)
Signed-off-by: Kevin Lingerfelt <kl@buoyant.io>
This commit is contained in:
parent
1db7d2a2fb
commit
300fd3475b
|
@ -89,19 +89,6 @@ export const ApiHelpers = (pathPrefix, defaultMetricsWindow = '10m') => {
|
|||
rollup: downstreamRollupUrl
|
||||
};
|
||||
}
|
||||
},
|
||||
"path": {
|
||||
// all paths (default), or all paths of a given deploy if specified
|
||||
groupBy: "path",
|
||||
url: (deploy = null) => {
|
||||
let pathRollupUrl = `${metricsUrl}&aggregation=path${ !deploy ? "" : `&target_deploy=${deploy}`}`;
|
||||
let pathTsUrl = `${pathRollupUrl}×eries=true`;
|
||||
|
||||
return {
|
||||
ts: pathTsUrl,
|
||||
rollup: pathRollupUrl
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -80,12 +80,9 @@ func NewServer(addr, templateDir, staticDir, uuid, webpackDevServer string, relo
|
|||
|
||||
// webapp routes
|
||||
server.router.GET("/", handler.handleIndex)
|
||||
server.router.GET("/pod", handler.handleIndex)
|
||||
server.router.GET("/deployment", handler.handleIndex)
|
||||
server.router.GET("/deployments", handler.handleIndex)
|
||||
server.router.GET("/paths", handler.handleIndex)
|
||||
server.router.GET("/servicemesh", handler.handleIndex)
|
||||
server.router.GET("/routes", handler.handleIndex)
|
||||
server.router.ServeFiles(
|
||||
"/dist/*filepath", // add catch-all parameter to match all files in dir
|
||||
filesonly.FileSystem(server.staticDir))
|
||||
|
|
Loading…
Reference in New Issue