felicity-lims/webapp/router/client.ts

31 lines
730 B
TypeScript
Raw Normal View History

2021-05-30 22:32:13 +08:00
const clientRoutes = [
2023-04-10 09:29:10 +08:00
{
2021-05-30 22:32:13 +08:00
path: '',
2023-04-10 09:29:10 +08:00
name: 'clients-listing',
component: () => import('../views/client/Clients.vue'),
meta: {
requiresAuth: true,
},
},
{
path: 'single',
name: 'client-single-view',
component: () => import('../views/client/_id/index.vue'),
children: [
{
path: '',
name: 'client-detail',
component: () => import('../views/client/_id/ClientDetail.vue'),
meta: {
requiresAuth: true,
},
},
],
2021-05-30 22:32:13 +08:00
meta: {
2023-04-10 09:29:10 +08:00
requiresAuth: true,
2021-05-30 22:32:13 +08:00
},
},
];
export default clientRoutes;