From ab231ee94f9c3403690db347b6983b3097aa820c Mon Sep 17 00:00:00 2001 From: Tiago Ramos <2222055@my.ipleiria.pt> Date: Tue, 23 Dec 2025 22:02:40 +0000 Subject: [PATCH] SyntaxSquad/DADProject#14 fixed routes --- frontend/src/router/index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 2dc88cd..165ddc6 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -9,6 +9,11 @@ import TestGameBoard from '@/pages/TestGameBoard.vue' import SinglePlayerGamePage from '@/pages/game/SinglePlayerGamePage.vue' import { createRouter, createWebHistory } from 'vue-router' import { toast } from 'vue-sonner' +import TestAnimations from '@/pages/TestAnimations.vue' +import TestDealing from '@/pages/TestDealing.vue' +import TestAllAnimations from '@/pages/TestAllAnimations.vue' +import TestGameBoard from '@/pages/TestGameBoard.vue' +import SinglePlayerGamePage from '@/pages/game/SinglePlayerGamePage.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -22,6 +27,20 @@ const router = createRouter({ path: '/login', name: 'login', component: LoginPage, + }, + { + path: '/game/3', + name: 'bisca3', + component: SinglePlayerGamePage, + props: { gameType: 3 }, + meta: { requiresAuth: true }, + }, + { + path: '/game/9', + name: 'bisca9', + component: SinglePlayerGamePage, + props: { gameType: 9 }, + meta: { requiresAuth: true }, }, { path: '/game/3',