const routes = [ { path: '/login', component: () => import('layouts/MainLayout.vue'), children: [ { path: '', component: () => import('pages/LoginPage.vue') } ] }, { path: '/', component: () => import('layouts/MainLayout.vue'), meta: { requiresAuth: true }, // This route requires authentication children: [ { path: '', component: () => import('pages/IndexPage.vue') } ] }, { path: '/about', component: () => import('layouts/MainLayout.vue'), meta: { requiresAuth: true }, // This route requires authentication children: [ { path: '', component: () => import('pages/AboutPage.vue') } ] }, // ... other routes ... { path: '/:catchAll(.*)*', component: () => import('pages/ErrorNotFound.vue') } ] export default routes