From d936a3aca60fe1febd43c74ced201eaddcec7770 Mon Sep 17 00:00:00 2001 From: Evan Date: Thu, 6 Mar 2025 09:41:28 -0800 Subject: [PATCH] fix put path --- src/client/HostLobbyModal.ts | 2 +- webpack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/HostLobbyModal.ts b/src/client/HostLobbyModal.ts index 308938cec..8298db655 100644 --- a/src/client/HostLobbyModal.ts +++ b/src/client/HostLobbyModal.ts @@ -589,7 +589,7 @@ export class HostLobbyModal extends LitElement { private async putGameConfig() { const config = await getServerConfigFromClient(); const response = await fetch( - `${window.location.origin}/api/${config.workerPath(this.lobbyId)}/game/${this.lobbyId}`, + `${window.location.origin}/${config.workerPath(this.lobbyId)}/api/game/${this.lobbyId}`, { method: "PUT", headers: { diff --git a/webpack.config.js b/webpack.config.js index 9555bbcbb..a38ca6fef 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -223,6 +223,7 @@ export default (env, argv) => { { context: [ "/api/env", + "/api/game", "/api/public_lobbies", "/api/join_game", "/api/start_game",