|
@@ -1,4 +1,4 @@
|
|
|
-const API_BASE = "http://localhost:5000";
|
|
|
+const API_BASE = "https://hiram.services/terrassumptions/api";
|
|
|
|
|
|
export const getStatus = async () => {
|
|
|
try {
|
|
@@ -49,7 +49,7 @@ export const gameInfo = async (gameId) => {
|
|
|
return await res.json();
|
|
|
}
|
|
|
|
|
|
-export const gameConfig = async (gameId) => {
|
|
|
+export const getGameConfig = async (gameId) => {
|
|
|
const res = await fetch(`${API_BASE}/game/${gameId}/config`);
|
|
|
if (!res.ok) {
|
|
|
throw Error(res.statusText);
|
|
@@ -57,7 +57,7 @@ export const gameConfig = async (gameId) => {
|
|
|
return await res.json();
|
|
|
}
|
|
|
|
|
|
-export const gameCoords = async (gameId) => {
|
|
|
+export const getGameCoords = async (gameId) => {
|
|
|
const res = await fetch(`${API_BASE}/game/${gameId}/coords`);
|
|
|
if (!res.ok) {
|
|
|
throw Error(res.statusText);
|