feat(multi): display player paths in round results screen

This commit is contained in:
jessy-david-dev
2026-04-11 22:08:56 +02:00
parent d4bb21da5d
commit c3152058ce
3 changed files with 30 additions and 6 deletions
+2
View File
@@ -11,6 +11,7 @@ export type Player = {
name: string;
score: number;
currentArticle: string;
path: string[]; // articles visités cette manche
hasWon: boolean;
hasSurrendered: boolean;
isHost: boolean;
@@ -141,6 +142,7 @@ export async function POST(request: NextRequest) {
name: playerName.trim().slice(0, 20),
score: 0,
currentArticle: "",
path: [],
hasWon: false,
hasSurrendered: false,
isHost: true,