feat: Implement get folders API endpoint

This commit is contained in:
Faruk AYDIN
2025-01-30 16:59:54 +01:00
parent 290c47647f
commit decdd61c04
6 changed files with 93 additions and 0 deletions

View File

@@ -1,12 +1,14 @@
import { Router } from 'express';
import { authenticateUser } from '../../../helpers/authentication.js';
import { authorizeUser } from '../../../helpers/authorization.js';
import getFoldersAction from '../../../controllers/api/v1/folders/get-folders.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.get('/', authenticateUser, authorizeUser, getFoldersAction);
router.post('/', authenticateUser, authorizeUser, createFolderAction);
router.patch('/:folderId', authenticateUser, authorizeUser, updateFolderAction);