Browse Source

Remove unused routes

main
Haris Razis 4 years ago
parent
commit
8275b436d3
  1. 9
      server/routes/athletes.js

9
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)

Loading…
Cancel
Save