text: function page (path) {
    return () => import(/* webpackChunkName: '' */ `~/pages/${path}`).then(m => m.default || m)
  }
  
  export default [
    { path: '/', name: 'welcome', component: page('welcome.vue') },
    { path: '/transactions', name: 'transactions', component: page('table.vue') },
    { path: '/accounts', name: 'accounts', component: page('accounts.vue') },
    { path: '/categories', name: 'categories', component: page('categories.vue') },
    { path: '/tags', name: 'tags', component: page('tags.vue') },
    { path: '/budgets', name: 'budgets', component: page('budgets.vue') },
    { path: '/recurring', name: 'recurring', component: page('recurring.vue') },
  
    { path: '/login', name: 'login', component: page('auth/login.vue') },
    { path: '/register', name: 'register', component: page('auth/register.vue') },
    { path: '/password/reset', name: 'password.request', component: page('auth/password/email.vue') },
    { path: '/password/reset/:token', name: 'password.reset', component: page('auth/password/reset.vue') },
    { path: '/email/verify/:id', name: 'verification.verify', component: page('auth/verification/verify.vue') },
    { path: '/email/resend', name: 'verification.resend', component: page('auth/verification/resend.vue') },
  
    { path: '/home', name: 'home', component: page('home.vue') },
    {
      path: '/settings',
      component: page('settings/index.vue'),
      children: [
        { path: '', redirect: { name: 'settings.profile' } },
        { path: 'profile', name: 'settings.profile', component: page('settings/profile.vue') },
        { path: 'password', name: 'settings.password', component: page('settings/password.vue') }
      ]
    },
  
    { path: '*', component: page('errors/404.vue') }
  ]
  