Browse Source

Renaming a couple of the api methods

Kirk Trombley 5 years ago
parent
commit
adc8359e55
1 changed files with 3 additions and 3 deletions
  1. 3 3
      client/src/domain/apiMethods.js

+ 3 - 3
client/src/domain/apiMethods.js

@@ -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);