
import gicCard from './gic-card';
import cardPackage from './card-package';
import Layout from '@/components/layout/layout';

export const asyncRoutes = [
  ...gicCard,
  ...cardPackage,
];


export const staticRoutes = [
  {
    path: '/',
    component: Layout,
    redirect: '/gic-card/list',
    children: [
      {
        path: '/index',
        component: () => import('@/views/index.vue'),
      },
    ]
  },
  {
    path: '*',
    redirect: '/index'
  },
];

export const routes = [ ...staticRoutes, ...asyncRoutes ];