feat: deleteall

This commit is contained in:
cv
2021-05-20 14:12:23 +02:00
parent 471fb1c698
commit fa98e2ad92
6 changed files with 83 additions and 4 deletions
+3
View File
@@ -25,6 +25,9 @@ router.patch('/reorder/', eventsController.eventsReorder);
// create route between controller and '/events/applydelay/:eventId' endpoint
router.patch('/applydelay/:eventId', eventsController.eventsApplyDelay);
// create route between controller and '/events/all' endpoint
router.delete('/all', eventsController.eventsDeleteAll);
// create route between controller and '/events/:eventId' endpoint
router.delete('/:eventId', eventsController.eventsDelete);