diff --git a/controllers/participant.js b/controllers/participant.js index 5571823c1e3aa985e2e1e32507da339348730996..99807871c3bb6766090c08c13ba2cb05252c5ebd 100644 --- a/controllers/participant.js +++ b/controllers/participant.js @@ -118,7 +118,7 @@ exports.getParticipantExistence = async (req, res, next) => { req.query.name, ); return res.json({ - exist: !!participant, + exists: !!participant, }); } catch (error) { return next(error); diff --git a/routes/participant.js b/routes/participant.js index a1dbda104009d67b9b42022262fc7f862891b1bb..f363e93526643c3416480f38766959bd88c7ee01 100644 --- a/routes/participant.js +++ b/routes/participant.js @@ -12,8 +12,8 @@ router.post('/', createParticipant); router.get('/', getParticipantByName); -router.get('/:participantId', getParticipantById); - router.get('/existence', getParticipantExistence); +router.get('/:participantId', getParticipantById); + module.exports = router;