diff options
| author | Pitu <[email protected]> | 2018-09-16 01:09:02 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2018-09-16 01:09:02 -0300 |
| commit | fe10a00ba9a3c30d8718ca004ccd19518466f5bd (patch) | |
| tree | 369752f59a88dd03df1e9752be0ba166bf93c933 /src/site/router/index.js | |
| parent | First version of start script (diff) | |
| download | host.fuwn.me-fe10a00ba9a3c30d8718ca004ccd19518466f5bd.tar.xz host.fuwn.me-fe10a00ba9a3c30d8718ca004ccd19518466f5bd.zip | |
Site
Diffstat (limited to 'src/site/router/index.js')
| -rw-r--r-- | src/site/router/index.js | 19 |
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; |