From 2cdc335224de798b4f8695bca1a45041e395521c Mon Sep 17 00:00:00 2001 From: iamBadgers Date: Sat, 27 Apr 2024 20:20:47 -0700 Subject: [PATCH] refining apps & picks --- backend/src/app.ts | 5 ----- frontend/src/vues/GameDetails.vue | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/src/app.ts b/backend/src/app.ts index 19d7d61..737654b 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -97,31 +97,26 @@ app.post('/api/game', jsonParser, async (req, res) => { app.get('/api/game/:gameId', async (req, res) => { const game = await Game.findOne({ where: { id: req.params['gameId'] } }) - console.log(game) res.send(game) }) app.post('/api/game/:gameId/apps', async (req, res) => { const apps = await App.findAll({ where: { gameId: req.params['gameId'] } }) - console.log(apps) res.send(apps) }) app.post('/api/character/:characterId/apps', async (req, res) => { const apps = await App.findAll({ where: { characterId: req.params['characterId'] } }) - console.log(apps) res.send(apps) }) app.post('/api/game/:gameId/picks', async (req, res) => { const picks = await Pick.findAll({ where: { gameId: req.params['gameId'] } }) - console.log(picks) res.send(picks) }) app.post('/api/character/:characterId/picks', async (req, res) => { const picks = await Pick.findAll({ where: { characterId: req.params['characterId'] } }) - console.log(picks) res.send(picks) }) diff --git a/frontend/src/vues/GameDetails.vue b/frontend/src/vues/GameDetails.vue index d588bf1..86f88e9 100644 --- a/frontend/src/vues/GameDetails.vue +++ b/frontend/src/vues/GameDetails.vue @@ -9,12 +9,12 @@
Picks
- {{pick.characterId}} - {{pick.characterName}} + {{pick.characterName}}
Apps
- {{app.characterId}} - {{app.characterName}} + {{app.characterName}}