index.js
552 Bytes
import home from './home';
import product from './product';
import shop from './shop';
import repository from './repository';
import statistics from './statistics';
import finance from './finance';
let routers = [product, home, shop, repository, statistics, finance];
let childrenRoutes = [].concat(...routers);
import layout from './layout';
let routes = [{
path: '/',
component: layout,
children: childrenRoutes
}];
import error from './error';
import auth from './auth';
routes = routes.concat(auth, error);
export default routes;