mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 12:13:08 +00:00
45 lines
1 KiB
JavaScript
Executable file
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,
|
|
},
|
|
],
|
|
});
|