Initial commit: Club DynaSQY
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const { Router } = require('express');
|
||||
const { list, getById, create, update, remove, setStatus } = require('../controllers/recommendationController');
|
||||
const { authenticate } = require('../middleware/auth');
|
||||
|
||||
const router = Router();
|
||||
router.get('/', authenticate, list);
|
||||
router.get('/:id', authenticate, getById);
|
||||
router.post('/', authenticate, create);
|
||||
router.put('/:id', authenticate, update);
|
||||
router.patch('/:id/status', authenticate, setStatus);
|
||||
router.delete('/:id', authenticate, remove);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user