|
@@ -41,14 +41,6 @@ export const createGame = async (timer, rounds, onlyAmerica) => {
|
|
return gameId;
|
|
return gameId;
|
|
}
|
|
}
|
|
|
|
|
|
-export const gameInfo = async (gameId) => {
|
|
|
|
- const res = await fetch(`${API_BASE}/game/${gameId}`);
|
|
|
|
- if (!res.ok) {
|
|
|
|
- throw Error(res.statusText);
|
|
|
|
- }
|
|
|
|
- return await res.json();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
export const getGameConfig = async (gameId) => {
|
|
export const getGameConfig = async (gameId) => {
|
|
const res = await fetch(`${API_BASE}/game/${gameId}/config`);
|
|
const res = await fetch(`${API_BASE}/game/${gameId}/config`);
|
|
if (!res.ok) {
|
|
if (!res.ok) {
|