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

index.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: 777badeb5bebc17b75777dfdf06a31f13898ef85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { GlToast } from '@gitlab/ui';
import Vue from 'vue';
import VueRouter from 'vue-router';
import { joinPaths } from '~/lib/utils/url_utility';
import { routes } from './routes';

Vue.use(GlToast);
Vue.use(VueRouter);

export function createRouter(fullPath) {
  return new VueRouter({
    routes: routes(),
    mode: 'history',
    base: joinPaths(fullPath, '-', 'work_items'),
  });
}