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

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [{ path: '', component: () => import('src/pages/IndexPage.vue') }],
  },

  {
    path: '/dev',
    component: () => import('layouts/DevLayout.vue'),
    children: [
      { path: '', component: () => import('src/pages/dev/IndexPage.vue') },
      {
        path: 'reset-password',
        component: () => import('pages/dev/ResetPasswordPage.vue'),
      },
      {
        path: 'api/endpoints',
        component: () => import('pages/dev/ApiEndpointsPage.vue'),
      },
      {
        path: 'api/mail-debug',
        component: () => import('pages/dev/MailDebugPage.vue'),
      },
    ],
  },
  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/ErrorNotFound.vue'),
  },
];

export default routes;
