gamebrary/src/router.js

46 lines
863 B
JavaScript
Raw Normal View History

2018-10-18 22:15:28 -07:00
import Vue from 'vue';
import Router from 'vue-router';
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',
name: 'board',
component: Board,
2019-11-08 12:56:03 -07:00
},
{
path: '/auth/:authProvider',
name: 'auth',
component: Board,
2019-11-08 12:56:03 -07:00
},
{
path: '*',
name: 'not-found',
component: NotFound,
},
],
2018-10-18 22:15:28 -07:00
});