feat: Implement get folders API endpoint
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user