Mercurial
view react_games/backend/routes/wordle.ts @ 273:e02e2036ef84 default tip
add Layer 2 JRPG component system
Add reusable content and window modals, an isolated component sandbox, shared cyberpunk scroll areas, production-safe cache freshness, and server-rendered JRPG panel state.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 08 Aug 2026 02:08:08 -0700 |
| parents | fb9bcd3145cb |
| children |
line wrap: on
line source
import { Router } from 'express'; const WORDS: string[] = [ "about","other","which","their","there","first","could","sound","great","again", "still","every","small","place","right","think","three","house","point","water", "after","thing","where","world","night","below","heavy","light","short","long", "happy","angry","brown","black","white","green","plant","sweet","spice","bread", "clock","chain","stone","brick","metal","paper","glass","chair","table","couch" ]; export function createWorldeRouter() { const router = Router(); const randomIdx = Math.floor(Math.random() * WORDS.length); router.get('/', async (_req, res) => { res.json({ targetWord: WORDS[randomIdx] }); }); return router; }