const routes = [ { path: "/", component: () => import("layouts/MainLayout.vue"), meta: { requireAuth: true }, children: [ { path: "", name: "Home", component: () => import("pages/IndexPage.vue"), meta: { requireAuth: true }, }, ], }, { path: "/login", component: () => import("layouts/LoginLayout.vue"), children: [ { path: "", name: "Login", component: () => import("pages/LoginPage.vue"), meta: { title: "Login", }, }, ], }, // Always leave this as last one, // but you can also remove it { path: "/:catchAll(.*)*", component: () => import("pages/ErrorNotFound.vue"), }, ]; export default routes;