diff options
author | Kai Stevenson <kai@kaistevenson.com> | 2025-06-28 13:36:02 -0700 |
---|---|---|
committer | Kai Stevenson <kai@kaistevenson.com> | 2025-06-28 13:36:02 -0700 |
commit | 452ac1d2a9e238684605acc8820a4dd365e70cf8 (patch) | |
tree | 744d0d4fe08edc06ad8c0693f9444021d0aa00ea /backend/src/index.ts | |
parent | 6475f534e7bf457113dcc82d94bfb7ac413f71c4 (diff) |
Diffstat (limited to 'backend/src/index.ts')
-rw-r--r-- | backend/src/index.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/backend/src/index.ts b/backend/src/index.ts deleted file mode 100644 index 58c5080..0000000 --- a/backend/src/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import express from "express"; -import cors from "cors"; -import { WORDLIST } from "./wordlist"; - -const PORT = 4000; -const app = express(); -app.use(cors()); - -app.get("/healthcheck", (req, res) => { - res.send("HEALTHY"); -}); - -app.get("/random-words", (req, res) => { - res.send( - new Array(16) - .fill(0) - .map(() => WORDLIST[Math.round(Math.random() * WORDLIST.length)]) - ); -}); - -app.listen(PORT, () => { - console.log("Initialized"); -}); |