feat : guess word

This commit is contained in:
2024-12-30 20:15:02 +01:00
parent 08daf733d1
commit 9eaf7009c6
12 changed files with 304 additions and 54 deletions
+7
View File
@@ -1,10 +1,17 @@
import { useGameStore } from "~/store/game.store";
const validPaths = ["/", "/rules", "/test", "/words"];
export default defineNuxtRouteMiddleware(async (to, from) => {
const config = useRuntimeConfig();
if (to.path.startsWith("/game/")) {
const gameId = Number(to.params.id);
const gameStore = useGameStore();
return;
}
if (to.path == "/login") {
const code = to.query.code;
if (!code) {