gamebrary/src/router.js

51 lines
974 B
JavaScript
Raw Normal View History

2018-10-19 05:15:28 +00:00
import Vue from 'vue';
import Router from 'vue-router';
2019-04-18 04:52:21 +00:00
import GameBoard from '@/pages/GameBoard';
2019-08-09 19:12:11 +00:00
import SessionExpired from '@/pages/SessionExpired';
2019-04-18 04:52:21 +00:00
import Platforms from '@/pages/Platforms';
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
mode: 'history',
routes: [
{
2020-08-11 04:16:43 +00:00
name: 'home',
path: '/',
2019-11-08 19:56:03 +00:00
component: Platforms,
meta: {
title: 'Platforms',
},
},
{
name: 'sessionExpired',
path: '/session-expired',
component: SessionExpired,
meta: {
title: 'Session expired',
},
},
{
2020-08-11 04:16:43 +00:00
path: '/board',
2019-11-08 19:56:03 +00:00
name: 'game-board',
component: GameBoard,
},
{
path: '/settings',
name: 'settings',
component: GameBoard,
},
{
path: '/auth/:authProvider',
name: 'auth',
component: GameBoard,
},
{
path: '*',
name: 'not-found',
component: NotFound,
},
],
2018-10-19 05:15:28 +00:00
});