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"); });