33 lines
893 B
JavaScript
33 lines
893 B
JavaScript
/**
|
|
* Applications routes (core feature)
|
|
*/
|
|
export default [
|
|
{
|
|
path: 'applications',
|
|
name: 'applications',
|
|
component: () => import('./views/ApplicationsList.vue')
|
|
},
|
|
{
|
|
path: 'applications/new',
|
|
name: 'application-new',
|
|
component: () => import('./views/ApplicationForm.vue'),
|
|
meta: { requiresAuth: true }
|
|
},
|
|
{
|
|
path: 'applications/:id',
|
|
name: 'application-detail',
|
|
component: () => import('./views/ApplicationDetail.vue')
|
|
},
|
|
{
|
|
path: 'applications/:id/edit',
|
|
name: 'application-edit',
|
|
component: () => import('./views/ApplicationForm.vue'),
|
|
meta: { requiresAuth: true }
|
|
}
|
|
]
|
|
|
|
// No full-screen routes: every view in this plugin renders inside
|
|
// AppLayout. Declared so routes.gen.js can read `.toplevel` off the module
|
|
// without Rollup warning about a missing export.
|
|
export const toplevel = []
|