32 lines
817 B
JavaScript
32 lines
817 B
JavaScript
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 |