From 854e35b971624e3c9c76ba4444601b40b21f98f8 Mon Sep 17 00:00:00 2001 From: Wo-ogie <siwall0105@gmail.com> Date: Mon, 27 Nov 2023 15:26:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B0=B8=EA=B0=80=EC=9E=90=20=EC=A1=B4?= =?UTF-8?q?=EC=9E=AC=20=EC=97=AC=EB=B6=80=20=EC=A1=B0=ED=9A=8C=20API?= =?UTF-8?q?=EA=B0=80=20=EB=8F=99=EC=9E=91=ED=95=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/participant.js | 2 +- routes/participant.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/participant.js b/controllers/participant.js index 5571823..9980787 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 a1dbda1..f363e93 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; -- GitLab