fix put path

This commit is contained in:
Evan
2025-03-06 09:41:28 -08:00
parent 6e91efdf35
commit d936a3aca6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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: {
+1
View File
@@ -223,6 +223,7 @@ export default (env, argv) => {
{
context: [
"/api/env",
"/api/game",
"/api/public_lobbies",
"/api/join_game",
"/api/start_game",