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

router.js « alert_details « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 616d5c259b92bc7c6b79fa8a938da3f18eb911d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Vue from 'vue';
import VueRouter from 'vue-router';
import { joinPaths } from '~/lib/utils/url_utility';

Vue.use(VueRouter);

export default function createRouter(base) {
  return new VueRouter({
    mode: 'history',
    base: joinPaths(gon.relative_url_root || '', base),
    routes: [{ path: '/:tabId', name: 'tab' }],
  });
}