import express from 'express' const app = express() const port = 3000 let game = { "id": 0, "state": { "progress" : "playing", "next": "X" }, "grid": [ " ", " ", " ", " ", " ", " ", " ", " ", " " ], }; app.get('/game/', (req, res) => { res.json(game); }); // Listen on the given port app.listen(port, () => { console.log(`Example app listening on port ${port}`) })