aboutsummaryrefslogtreecommitdiffstats
path: root/backend/ts/index.ts
diff options
context:
space:
mode:
authorMaks Jopek <maksymilian.jopek@prym-soft.pl>2021-05-01 00:20:33 +0200
committerMaks Jopek <maksymilian.jopek@prym-soft.pl>2021-05-01 00:20:33 +0200
commitc813dfadd4b673080695ef3ade37a44e37036c07 (patch)
tree4d6348ecad8c65780323ccb823063f335c5c9e7f /backend/ts/index.ts
parent040d5372c1033bb7c0580ad2c9b6b32f974a20c8 (diff)
downloadfia-c813dfadd4b673080695ef3ade37a44e37036c07.tar.gz
fia-c813dfadd4b673080695ef3ade37a44e37036c07.tar.zst
fia-c813dfadd4b673080695ef3ade37a44e37036c07.zip
Version 1.1
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 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}`);