add in game details
This commit is contained in:
1 parent
ae9892acde
commit
4650b20a84
4 files changed
+53
-12
No files matched your search
+4
-1
@@ -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