From 13dcc2c8fc1d11e3b94432fffc4c4f186bd94d29 Mon Sep 17 00:00:00 2001 From: Maks Jopek Date: Sat, 24 Apr 2021 00:34:07 +0200 Subject: Playing almost working --- backend/ts/index.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/ts/index.ts') 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, () => { -- cgit v1.3.1