feat: Implement folder removal API endpoint
This commit is contained in:
@@ -3,10 +3,18 @@ import { authenticateUser } from '../../../helpers/authentication.js';
|
||||
import { authorizeUser } from '../../../helpers/authorization.js';
|
||||
import createFolderAction from '../../../controllers/api/v1/folders/create-folder.js';
|
||||
import updateFolderAction from '../../../controllers/api/v1/folders/update-folder.js';
|
||||
import deleteFolderAction from '../../../controllers/api/v1/folders/delete-folder.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.post('/', authenticateUser, authorizeUser, createFolderAction);
|
||||
router.patch('/:folderId', authenticateUser, authorizeUser, updateFolderAction);
|
||||
|
||||
router.delete(
|
||||
'/:folderId',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
deleteFolderAction
|
||||
);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user