浏览代码

Renaming a couple of the api methods

Kirk Trombley 5 年之前
父节点
当前提交
adc8359e55
共有 1 个文件被更改,包括 3 次插入3 次删除
  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 () => {
 export const getStatus = async () => {
     try {
     try {
@@ -49,7 +49,7 @@ export const gameInfo = async (gameId) => {
     return await res.json();
     return await res.json();
 }
 }
 
 
-export const gameConfig = 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) {
         throw Error(res.statusText);
         throw Error(res.statusText);
@@ -57,7 +57,7 @@ export const gameConfig = async (gameId) => {
     return await res.json();
     return await res.json();
 }
 }
 
 
-export const gameCoords = async (gameId) => {
+export const getGameCoords = async (gameId) => {
     const res = await fetch(`${API_BASE}/game/${gameId}/coords`);
     const res = await fetch(`${API_BASE}/game/${gameId}/coords`);
     if (!res.ok) {
     if (!res.ok) {
         throw Error(res.statusText);
         throw Error(res.statusText);