import type { RouteRecordRaw } from 'vue-router' import PageLayout from '@af-mobile-client-vue3/layout/PageLayout.vue' import NotFound from '@af-mobile-client-vue3/views/common/NotFound.vue' import invoiceShow from '@af-mobile-client-vue3/views/invoiceShow/index.vue' const routes: Array = [ { path: '/', name: 'root', component: PageLayout, redirect: { name: 'Component' }, children: [ { path: '/invoiceShow', name: 'invoiceShow', component: invoiceShow, meta: { requiresAuth: false, allowExternalUser: false, }, }, ], }, { path: '/404', name: '404', component: NotFound, }, { path: '/:pathMatch(.*)', redirect: { name: '404', }, }, ] export default routes