2023-01-13 00:05:48 +05:30
|
|
|
function getRoutes() {
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: '/:id',
|
|
|
|
name: 'workItem',
|
|
|
|
component: () => import('../pages/work_item_root.vue'),
|
|
|
|
props: true,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
if (gon.features?.workItemsMvc2) {
|
|
|
|
routes.unshift({
|
|
|
|
path: '/new',
|
|
|
|
name: 'createWorkItem',
|
|
|
|
component: () => import('../pages/create_work_item.vue'),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
return routes;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const routes = getRoutes;
|