feat: Implement create folder API endpoint
This commit is contained in:
10
packages/backend/src/routes/api/v1/folders.js
Normal file
10
packages/backend/src/routes/api/v1/folders.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.post('/', authenticateUser, authorizeUser, createFolderAction);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user