2018-10-18 22:15:28 -07:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
2020-08-14 16:59:29 -07:00
|
|
|
import Board from '@/pages/Board';
|
2019-08-09 12:12:11 -07:00
|
|
|
import SessionExpired from '@/pages/SessionExpired';
|
2019-04-17 21:52:21 -07:00
|
|
|
import Platforms from '@/pages/Platforms';
|
2019-04-19 10:35:02 -07:00
|
|
|
import NotFound from '@/pages/NotFound';
|
2018-10-18 22:15:28 -07:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
2019-11-08 12:56:03 -07:00
|
|
|
mode: 'history',
|
|
|
|
routes: [
|
|
|
|
{
|
2020-08-10 21:16:43 -07:00
|
|
|
name: 'home',
|
|
|
|
path: '/',
|
2019-11-08 12:56:03 -07:00
|
|
|
component: Platforms,
|
|
|
|
meta: {
|
|
|
|
title: 'Platforms',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'sessionExpired',
|
|
|
|
path: '/session-expired',
|
|
|
|
component: SessionExpired,
|
|
|
|
meta: {
|
|
|
|
title: 'Session expired',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2020-08-10 21:16:43 -07:00
|
|
|
path: '/board',
|
2020-08-14 16:59:29 -07:00
|
|
|
name: 'board',
|
|
|
|
component: Board,
|
2019-11-08 12:56:03 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/auth/:authProvider',
|
|
|
|
name: 'auth',
|
2020-08-14 16:59:29 -07:00
|
|
|
component: Board,
|
2019-11-08 12:56:03 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
name: 'not-found',
|
|
|
|
component: NotFound,
|
|
|
|
},
|
|
|
|
],
|
2018-10-18 22:15:28 -07:00
|
|
|
});
|