add in game details

This commit is contained in:
iamBadgers
2024-04-27 17:32:03 -07:00
parent ae9892acde
commit 4650b20a84
4 changed files with 53 additions and 12 deletions

View File

@@ -96,7 +96,10 @@ app.post('/api/game', jsonParser, async (req, res) => {
})
app.get('/api/game/:gameId', async (req, res) => {
res.send(await Game.findOne({ where: { id: req.params['gameId'] } }))
const game = await Game.findOne({ where: { id: req.params['gameId'] } })
console.log(game)
res.send(game)
})
app.listen(port, async () => {