Added Websockets

This commit is contained in:
2025-08-30 00:55:31 +02:00
parent 04a47f4a00
commit 362cd7019b
12 changed files with 223 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
import { error } from '@sveltejs/kit';
import games from '$lib/games/games';
export function load({ params }) {
const index = parseInt(params.game);
if (isNaN(index)) {
error(404);
}
const game = games[index];
if (game === undefined) error(404);
else return game;
}