From c813dfadd4b673080695ef3ade37a44e37036c07 Mon Sep 17 00:00:00 2001 From: Maks Jopek Date: Sat, 1 May 2021 00:20:33 +0200 Subject: Version 1.1 --- 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 dcaac7e..90c1683 100644 --- a/backend/ts/index.ts +++ b/backend/ts/index.ts @@ -7,6 +7,8 @@ import startPoint from "./api/startPoint"; import readyStateToggle from "./api/readyStateToggle"; import getCurrentGameState from "./api/getCurrentGameState"; import saveGameBoard from "./api/saveGameBoard"; +import won from "./api/won"; +import reset from "./api/reset"; export const global = { stop: false }; @@ -36,6 +38,8 @@ app.post("/login", login); app.post("/readyStateToggle", readyStateToggle); app.post("/getCurrentGameState", getCurrentGameState); app.post("/saveGameBoard", saveGameBoard); +app.post("/won", won); +app.post("/reset", reset); app.listen(PORT, () => { console.log(`[server]: Server is running at https://localhost:${PORT}`); -- cgit v1.3.1