summaryrefslogtreecommitdiff
path: root/src/env/router/ibm.js
blob: 213920db2c03eccaf019ba0d18377dfa98da8d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { remove } from 'lodash';
import routes from '@/router/routes';

const customRoutes = routes.map(route => {
  // Removes router definition that includes kvm
  // in name property (main and console layouts)

  // TODO: will revisit this, removing the definition
  // removes the route from the application but
  // the component is still included in the final build
  remove(route.children, ({ name }) => name.includes('kvm'));
  return route;
});

export default customRoutes;