feat: Implement update folder API endpoint
This commit is contained in:
@@ -2,9 +2,11 @@ import { Router } from 'express';
|
||||
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';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.post('/', authenticateUser, authorizeUser, createFolderAction);
|
||||
router.patch('/:folderId', authenticateUser, authorizeUser, updateFolderAction);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user