♻️ (route) simpler route

This commit is contained in:
2020-07-18 11:05:48 +02:00
parent 8a04e1e7c0
commit fc314a9693
2 changed files with 7 additions and 2 deletions

View File

@@ -8,8 +8,13 @@ const routes: RouteConfig[] = [
{ {
path: '/', path: '/',
name: 'Home', name: 'Home',
component: Home
},
{
path: '/play',
name: 'Home',
component: Home, component: Home,
props: (route) => ({ play: route.query.play }) props: { play: true }
} }
] ]

View File

@@ -16,7 +16,7 @@ module.exports = {
name: 'Start a session', name: 'Start a session',
short_name: 'Start', short_name: 'Start',
description: 'Start a pair programming session', description: 'Start a pair programming session',
url: '/?play=true' url: '/play'
} }
], ],
icons: [ icons: [