2018-10-18 22:15:28 -07:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
|
|
|
import ShareList from '@/pages/ShareList/ShareList';
|
2019-01-23 23:15:00 -07:00
|
|
|
import GameBoard from '@/pages/GameBoard/GameBoard';
|
2018-10-24 23:33:15 -07:00
|
|
|
import Platforms from '@/pages/Platforms/Platforms';
|
2018-10-18 22:15:28 -07:00
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
2019-02-05 23:55:15 -07:00
|
|
|
mode: 'history',
|
2018-10-18 22:15:28 -07:00
|
|
|
routes: [
|
|
|
|
{
|
2019-02-15 21:45:14 -07:00
|
|
|
path: '/s',
|
|
|
|
name: 'share-list',
|
2018-10-18 22:15:28 -07:00
|
|
|
component: ShareList,
|
|
|
|
},
|
2018-10-24 23:33:15 -07:00
|
|
|
{
|
|
|
|
name: 'platforms',
|
|
|
|
path: '/platforms',
|
|
|
|
component: Platforms,
|
2018-11-04 19:27:14 -07:00
|
|
|
meta: {
|
|
|
|
title: 'Platforms',
|
|
|
|
},
|
2018-10-24 23:33:15 -07:00
|
|
|
},
|
2018-10-18 22:15:28 -07:00
|
|
|
{
|
|
|
|
path: '/',
|
2019-01-23 23:15:00 -07:00
|
|
|
name: 'game-board',
|
|
|
|
component: GameBoard,
|
2018-10-18 22:15:28 -07:00
|
|
|
},
|
2019-04-01 21:00:18 -07:00
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
component: GameBoard,
|
|
|
|
},
|
2018-10-18 22:15:28 -07:00
|
|
|
],
|
|
|
|
});
|