2018-10-19 05:15:28 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
2020-08-14 23:59:29 +00:00
|
|
|
import Board from '@/pages/Board';
|
2020-08-18 18:56:10 +00:00
|
|
|
import Dashboard from '@/pages/Dashboard';
|
2019-04-19 17:35:02 +00:00
|
|
|
import NotFound from '@/pages/NotFound';
|
2018-10-19 05:15:28 +00:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
2019-11-08 19:56:03 +00:00
|
|
|
routes: [
|
|
|
|
{
|
2020-08-11 04:16:43 +00:00
|
|
|
name: 'home',
|
|
|
|
path: '/',
|
2020-08-18 18:56:10 +00:00
|
|
|
component: Dashboard,
|
2019-11-08 19:56:03 +00:00
|
|
|
meta: {
|
2020-08-18 18:56:10 +00:00
|
|
|
title: 'Dashboard',
|
2019-11-08 19:56:03 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2020-08-18 18:56:10 +00:00
|
|
|
name: 'boards',
|
|
|
|
path: '/boards',
|
|
|
|
component: Dashboard,
|
2019-11-08 19:56:03 +00:00
|
|
|
meta: {
|
2020-08-18 18:56:10 +00:00
|
|
|
title: 'Dashboard',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2020-09-06 14:53:04 +00:00
|
|
|
path: '/board/:id',
|
|
|
|
name: 'board',
|
|
|
|
component: Board,
|
2019-11-08 19:56:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/auth/:authProvider',
|
|
|
|
name: 'auth',
|
2020-08-14 23:59:29 +00:00
|
|
|
component: Board,
|
2019-11-08 19:56:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
name: 'not-found',
|
|
|
|
component: NotFound,
|
|
|
|
},
|
|
|
|
],
|
2018-10-19 05:15:28 +00:00
|
|
|
});
|