blob: 2b39a298720c0a64a65cefb07ebe6157266ff672 (
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,
mode: 'history',
base: joinPaths(fullPath, '-', 'work_items'),
});
}
|