debian-mirror-gitlab/app/assets/javascripts/work_items/router/routes.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
424 B
JavaScript
Raw Normal View History

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;