feat: Implement update folder API endpoint

This commit is contained in:
Faruk AYDIN
2025-01-28 11:49:15 +01:00
parent 28f392aa20
commit ac74936ee5
5 changed files with 142 additions and 0 deletions

View File

@@ -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;