add in game details
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user