From dd91a8723b1e8a6ce982e565bca269c96b0390d0 Mon Sep 17 00:00:00 2001 From: 0880 <98263509+0880880@users.noreply.github.com> Date: Sat, 17 Jan 2026 18:56:21 +0330 Subject: [PATCH] Remove API_ROOT --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 088bbed..629a688 100644 --- a/index.html +++ b/index.html @@ -162,7 +162,7 @@ selected = [i, j]; moves = []; - fetch('{{ API_ROOT }}/moves/' + ROOM_ID, { + fetch('/moves/' + ROOM_ID, { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -182,7 +182,7 @@ moves.forEach(move => { console.log(move); if (move[0] == i && move[1] == j) { - fetch('{{ API_ROOT }}/move/' + ROOM_ID, { + fetch('/move/' + ROOM_ID, { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -208,7 +208,7 @@ function update() { if (ROOM_ID) { - fetch('{{ API_ROOT }}/poll/' + ROOM_ID, { + fetch('/poll/' + ROOM_ID, { method: 'GET', }) .then((response) => response.json()) @@ -240,7 +240,7 @@ function join(rid) { if (rid.length > 0 && /^[a-zA-Z0-9_-]+$/.test(rid)) { - fetch('{{ API_ROOT }}/join/' + rid, { + fetch('/join/' + rid, { method: 'POST', }) .then((response) => response.json())