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

16 lines
392 B
JavaScript

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'),
});
}