import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/homePage',
  },
  {
    path: '/homePage',
    name: 'homePage',
    component: () => import('@/views/home.vue'),
  },
  {
    path: '/error',
    name: 'ErrorPage',
    component: () => import('@/views/error.vue'),
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/error',
  },
];

export { routes };
