aboutsummaryrefslogtreecommitdiffstats
path: root/backend/ts/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ts/index.ts')
-rw-r--r--backend/ts/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/ts/index.ts b/backend/ts/index.ts
index d0899dd..e4ec5ee 100644
--- a/backend/ts/index.ts
+++ b/backend/ts/index.ts
@@ -6,6 +6,9 @@ import login from "./api/login";
import startPoint from "./api/startPoint";
import readyStateToggle from "./api/readyStateToggle";
import getCurrentGameState from "./api/getCurrentGameState";
+import saveGameBoard from "./api/saveGameBoard";
+
+export const global = { stop: false };
dotenv.config();
const app = express();
@@ -25,6 +28,7 @@ app.get("/startPoint", startPoint)
app.post("/login", login);
app.post("/readyStateToggle", readyStateToggle);
app.post("/getCurrentGameState", getCurrentGameState);
+app.post("/saveGameBoard", saveGameBoard);
app.listen(PORT, () => {