Initial commit: Club DynaSQY

This commit is contained in:
2026-08-23 09:04:47 +00:00
commit 0875890dc7
145 changed files with 16947 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const { Router } = require('express');
const { list, getById, create, update, remove, search, sendInvitation, candidature, nextEventGuestCount } = require('../controllers/guestController');
const { authenticate } = require('../middleware/auth');
const router = Router();
router.get('/', authenticate, list);
router.get('/search', authenticate, search);
router.get('/:id', authenticate, getById);
router.post('/', authenticate, create);
router.put('/:id', authenticate, update);
router.delete('/:id', authenticate, remove);
router.post('/:id/send-invitation', authenticate, sendInvitation);
router.post('/:id/candidature', authenticate, candidature);
router.get('/next-count', authenticate, nextEventGuestCount);
module.exports = router;