add in game details

This commit is contained in:
iamBadgers committed 2024-04-27 17:32:03 -07:00
1 parent ae9892acde
commit 4650b20a84
4 files changed
+53 -12

No files matched your search

+4 -1
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 () => {