debian-mirror-gitlab/app/assets/javascripts/work_items/router/routes.js
2023-01-12 18:35:48 +00:00

22 lines
424 B
JavaScript

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;