gamebrary/src/router/index.js

42 lines
938 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 ShareList from '@/pages/ShareList';
import GameBoard from '@/pages/GameBoard';
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({
routes: [
{
2019-02-16 04:45:14 +00:00
path: '/s',
name: 'share-list',
2018-10-19 05:15:28 +00:00
component: ShareList,
},
{
name: 'platforms',
path: '/platforms',
component: Platforms,
2018-11-05 02:27:14 +00:00
meta: {
title: 'Platforms',
},
},
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
],
});