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

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

16 lines
259 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import Vue from 'vue';
import VueRouter from 'vue-router';
import routes from './routes';
Vue.use(VueRouter);
export default function createRouter(base) {
const router = new VueRouter({
base,
mode: 'history',
routes,
});
return router;
}