From 452ac1d2a9e238684605acc8820a4dd365e70cf8 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sat, 28 Jun 2025 13:36:02 -0700 Subject: MVP --- backend/src/index.ts | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 backend/src/index.ts (limited to 'backend/src/index.ts') 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"); -}); -- cgit v1.2.3-70-g09d2