gamebrary/src/router.js
2019-09-03 16:07:01 -07:00

45 lines
1 KiB
JavaScript
Executable file

import Vue from 'vue';
import Router from 'vue-router';
import GameBoard from '@/pages/GameBoard';
import SessionExpired from '@/pages/SessionExpired';
import Platforms from '@/pages/Platforms';
import NotFound from '@/pages/NotFound';
Vue.use(Router);
export default new Router({
mode: 'history',
routes: [
{
name: 'platforms',
path: '/platforms',
component: Platforms,
meta: {
title: 'Platforms',
},
},
{
name: 'sessionExpired',
path: '/session-expired',
component: SessionExpired,
meta: {
title: 'Session expired',
},
},
{
path: '/',
name: 'game-board',
component: GameBoard,
},
{
path: '/auth/:authProvider',
name: 'auth',
component: GameBoard,
},
{
path: '*',
name: 'not-found',
component: NotFound,
},
],
});