From a62073511f2ac912ceb0f6b4730bef37545dd8ea Mon Sep 17 00:00:00 2001 From: LQ63 Date: Wed, 10 Jun 2026 11:13:37 +0200 Subject: [PATCH] fix: route play-vs-bot to /vs-bot endpoint POST /api/board/game is @InternalOnly and returns 401 for browser clients. Switch to /api/board/game/vs-bot which is @PermitAll and notifies the official-bots service to play the bot side automatically. Co-Authored-By: Claude Sonnet 4.6 --- src/app/services/game-api.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/game-api.service.ts b/src/app/services/game-api.service.ts index 726fd64..cf7aef6 100644 --- a/src/app/services/game-api.service.ts +++ b/src/app/services/game-api.service.ts @@ -40,7 +40,7 @@ export class GameApiService { ? { white: playerInfo, black: botInfo } : { white: botInfo, black: playerInfo }; - return this.http.post(`${this.apiBase}${this.apiPath}`, payload); + return this.http.post(`${this.apiBase}${this.apiPath}/vs-bot`, payload); } getGame(gameId: string): Observable {