From 890c341d9e6b165cb9fed5c7ee2395c8a7305c7c Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 4 Jul 2019 01:20:32 +0200 Subject: [PATCH] . --- server/api/controller/event.js | 1 + server/api/index.js | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/server/api/controller/event.js b/server/api/controller/event.js index 20e22d9c..25a57d30 100644 --- a/server/api/controller/event.js +++ b/server/api/controller/event.js @@ -105,6 +105,7 @@ const eventController = { }, async confirm(req, res) { + console.error('confirm event') const id = Number(req.params.event_id) const event = await Event.findByPk(id) if (!event) return res.sendStatus(404) diff --git a/server/api/index.js b/server/api/index.js index 17092de1..49171d89 100644 --- a/server/api/index.js +++ b/server/api/index.js @@ -86,13 +86,14 @@ api.delete('/event/notification/:code', eventController.delNotification) api.get('/settings', settingsController.getAllRequest) api.post('/settings', jwt, fillUser, isAdmin, settingsController.setRequest) -// get event -api.get('/event/:event_id', jwt, fillUser, eventController.get) - // confirm event api.get('/event/confirm/:event_id', jwt, isAuth, isAdmin, eventController.confirm) api.get('/event/unconfirm/:event_id', jwt, isAuth, isAdmin, eventController.unconfirm) +// get event +api.get('/event/:event_id', jwt, fillUser, eventController.get) + + // export events (rss/ics) api.get('/export/:type', exportController.export)