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-08-01 20:53:19 +00:00
|
|
|
mode: 'history',
|
2018-10-19 05:15:28 +00:00
|
|
|
routes: [
|
2018-10-25 06:33:15 +00:00
|
|
|
{
|
|
|
|
name: 'platforms',
|
|
|
|
path: '/platforms',
|
|
|
|
component: Platforms,
|
2018-11-05 02:27:14 +00:00
|
|
|
meta: {
|
|
|
|
title: 'Platforms',
|
|
|
|
},
|
2018-10-25 06:33:15 +00:00
|
|
|
},
|
2019-08-09 19:12:11 +00:00
|
|
|
{
|
|
|
|
name: 'sessionExpired',
|
|
|
|
path: '/session-expired',
|
|
|
|
component: SessionExpired,
|
|
|
|
meta: {
|
|
|
|
title: 'Session expired',
|
|
|
|
},
|
|
|
|
},
|
2018-10-19 05:15:28 +00:00
|
|
|
{
|
|
|
|
path: '/',
|
2019-01-24 06:15:00 +00:00
|
|
|
name: 'game-board',
|
|
|
|
component: GameBoard,
|
2018-10-19 05:15:28 +00:00
|
|
|
},
|
2019-05-17 02:32:52 +00:00
|
|
|
{
|
|
|
|
path: '/auth/:authProvider',
|
|
|
|
name: 'auth',
|
|
|
|
component: GameBoard,
|
|
|
|
},
|
2019-04-02 04:00:18 +00:00
|
|
|
{
|
|
|
|
path: '*',
|
2019-04-19 17:35:02 +00:00
|
|
|
name: 'not-found',
|
|
|
|
component: NotFound,
|
2019-04-02 04:00:18 +00:00
|
|
|
},
|
2018-10-19 05:15:28 +00:00
|
|
|
],
|
|
|
|
});
|