From 8275b436d3ab839a6b9679cc7e2d41ebef5c8e0d Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Sun, 3 Jan 2021 11:52:31 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9D=8C=20Remove=20unused=20routes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/routes/athletes.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/routes/athletes.js b/server/routes/athletes.js index 3c75de9..18d52b5 100644 --- a/server/routes/athletes.js +++ b/server/routes/athletes.js @@ -10,15 +10,6 @@ router.get('/api/athletes', requireAuth, async (req, res) => { res.send(athletes); }); -//add a new athlete -router.get('/api/athletes/new', requireAuth, (req, res) => { - -}); - -//add a new athlete -router.post('/api/athletes', requireAuth, (req, res) => { -}); - router.get('/api/athletes/:id', requireAuth, async (req, res) => { const athlete = await Athlete.findById(req.params.id); res.send(athlete)