Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routes.js « router « work_items « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 664f3dcc8f78253b729ce65afbe09db7b0cfe05f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function getRoutes() {
  const routes = [
    {
      path: '/:iid',
      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;