aboutsummaryrefslogtreecommitdiff
path: root/src/site/router
diff options
context:
space:
mode:
Diffstat (limited to 'src/site/router')
-rw-r--r--src/site/router/index.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/site/router/index.js b/src/site/router/index.js
new file mode 100644
index 0000000..ac4a3d5
--- /dev/null
+++ b/src/site/router/index.js
@@ -0,0 +1,19 @@
+import Vue from 'vue';
+import Router from 'vue-router';
+
+Vue.use(Router);
+
+const router = new Router({
+ mode: 'history',
+ routes: [
+ { path: '/', component: () => import('../views/Home.vue') },
+ { path: '/login', component: () => import('../views/Auth/Login.vue') },
+ { path: '/register', component: () => import('../views/Auth/Register.vue') },
+ { path: '/dashboard', component: () => import('../views/Dashboard/Uploads.vue') },
+ { path: '/dashboard/albums', component: () => import('../views/Dashboard/Albums.vue') },
+ { path: '/dashboard/settings', component: () => import('../views/Dashboard/Settings.vue') },
+ { path: '*', component: () => import('../views/NotFound.vue') }
+ ]
+});
+
+export default router;