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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ci/catalog/router/index.js')
-rw-r--r--app/assets/javascripts/ci/catalog/router/index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/ci/catalog/router/index.js b/app/assets/javascripts/ci/catalog/router/index.js
new file mode 100644
index 00000000000..0b2b3dd3aa3
--- /dev/null
+++ b/app/assets/javascripts/ci/catalog/router/index.js
@@ -0,0 +1,13 @@
+import Vue from 'vue';
+import VueRouter from 'vue-router';
+import { createRoutes } from './routes';
+
+Vue.use(VueRouter);
+
+export const createRouter = (base, listComponent) => {
+ return new VueRouter({
+ base,
+ mode: 'history',
+ routes: createRoutes(listComponent),
+ });
+};