import {newGame, dropPiece} from './connect4.js' let the_game = newGame(); app.get('/:gameid/game', (req, res) => { return the_game; }) app.get('/:gameid/set/:column', (req, res) => { let column = parseInt(req.params['cell']); dropPiece(the_game, column); res.json(the_game) })