usuarios pre configurados
This commit is contained in:
@@ -8,24 +8,35 @@ const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Lobby',
|
||||
path: '/:uuid',
|
||||
name: 'LobbyWithUuid',
|
||||
component: Lobby
|
||||
},
|
||||
{
|
||||
path: '/game',
|
||||
name: 'Game',
|
||||
path: '/:uuid/game',
|
||||
name: 'GameWithUuid',
|
||||
component: Game
|
||||
},
|
||||
{
|
||||
path: '/demo',
|
||||
name: 'DemoGame',
|
||||
path: '/:uuid/demo',
|
||||
name: 'DemoGameWithUuid',
|
||||
component: DemoGame
|
||||
},
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: 'Dashboard',
|
||||
component: Dashboard
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/missing-uuid'
|
||||
},
|
||||
{
|
||||
// simple fallback for users hitting root without UUID
|
||||
path: '/missing-uuid',
|
||||
component: {
|
||||
template: `<div style="padding:20px;font-family:sans-serif"><h2>Falta UUID</h2><p>Abre el juego escaneando tu código QR: snatchgame.nucleoriofrio.com/{uuid}</p></div>`
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user