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

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

15 lines
326 B
JavaScript
Raw Normal View History

2021-12-11 22:18:48 +05:30
import Vue from 'vue';
import VueRouter from 'vue-router';
import { joinPaths } from '~/lib/utils/url_utility';
import { routes } from './routes';
Vue.use(VueRouter);
export function createRouter(fullPath) {
return new VueRouter({
routes,
mode: 'history',
base: joinPaths(fullPath, '-', 'work_items'),
});
}