mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-16 17:54:06 +00:00
28 lines
637 B
TypeScript
28 lines
637 B
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
const ModuleIndexView = () => import('./views/ModuleIndexView.vue')
|
|
const ModuleDetailView = () => import('./views/ModuleDetailView.vue')
|
|
|
|
export const moduleRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: 'modules',
|
|
name: 'modules.index',
|
|
component: ModuleIndexView,
|
|
meta: {
|
|
requiresAuth: true,
|
|
ability: 'manage-module',
|
|
title: 'modules.title',
|
|
},
|
|
},
|
|
{
|
|
path: 'modules/:slug',
|
|
name: 'modules.view',
|
|
component: ModuleDetailView,
|
|
meta: {
|
|
requiresAuth: true,
|
|
ability: 'manage-module',
|
|
title: 'modules.title',
|
|
},
|
|
},
|
|
]
|