aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/src/router.js
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2020-06-03 10:06:52 +0200
committerThomas Duval <thomas.duval@orange.com>2020-06-03 10:06:52 +0200
commit7bb53c64da2dcf88894bfd31503accdd81498f3d (patch)
tree4310e12366818af27947b5e2c80cb162da93a4b5 /dashboard/src/router.js
parentcbea4e360e9bfaa9698cf7c61c83c96a1ba89b8c (diff)
Update to new version 5.4HEADstable/jermamaster
Signed-off-by: Thomas Duval <thomas.duval@orange.com> Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea
Diffstat (limited to 'dashboard/src/router.js')
-rw-r--r--dashboard/src/router.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/dashboard/src/router.js b/dashboard/src/router.js
new file mode 100644
index 00000000..f05d9515
--- /dev/null
+++ b/dashboard/src/router.js
@@ -0,0 +1,56 @@
+import Vue from 'vue'
+import Router from 'vue-router'
+import Models from './views/Models.vue'
+import Auth from './views/Auth.vue'
+import Rules from './views/Rules.vue'
+import PDP from './views/Pdps.vue'
+import Admin from './views/Admin.vue'
+import ErrorPage from './views/Error.vue'
+import Assignments from "./views/Assignments";
+
+Vue.use(Router)
+
+export default new Router({
+ routes: [
+ {
+ path: '/auth',
+ name: 'auth',
+ component: Auth
+ },
+ {
+ path: '/',
+ redirect: { name: 'models' }
+ },
+ {
+ path: '/models',
+ name: 'models',
+ component: Models
+ },
+ {
+ path: '/rules',
+ name: 'rules',
+ component: Rules
+ },
+ {
+ path: '/assignments',
+ name: 'assignments',
+ component: Assignments
+ },
+ {
+ path: '/pdp',
+ name: 'pdp',
+ component: PDP
+ },
+ {
+ path: '/admin',
+ name: 'admin',
+ component: Admin
+ },
+ {
+ path: '/error',
+ name: 'error',
+ component: ErrorPage
+ },
+
+ ]
+})