xref: /openbmc/webui-vue/src/env/router/ibm.js (revision 579cbdf4)
1import { remove } from 'lodash';
2import routes from '@/router/routes';
3
4const customRoutes = routes.map(route => {
5  // Removes router definition that includes kvm
6  // in name property (main and console layouts)
7
8  // TODO: will revisit this, removing the definition
9  // removes the route from the application but
10  // the component is still included in the final build
11  remove(route.children, ({ name }) => name.includes('kvm'));
12  return route;
13});
14
15export default customRoutes;
16