aboutsummaryrefslogtreecommitdiff
path: root/src/site/router/index.js
blob: d1be2a6229e40c9481ff7f3bf613864b65b2294e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;