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: 142fab8cfa69a6bcb50a0f62c7d786683da06d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'),
  });
}