Remove unused web routes and helper (#356)

Signed-off-by: Kevin Lingerfelt <kl@buoyant.io>
This commit is contained in:
Kevin Lingerfelt 2018-02-14 11:52:39 -08:00 committed by GitHub
parent 1db7d2a2fb
commit 300fd3475b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 16 deletions

View File

@ -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}&timeseries=true`;
return {
ts: pathTsUrl,
rollup: pathRollupUrl
};
}
}
};

View File

@ -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))