feat: Implement update flow folder API endpoint
This commit is contained in:
@@ -5,6 +5,7 @@ import getFlowsAction from '../../../controllers/api/v1/flows/get-flows.js';
|
||||
import getFlowAction from '../../../controllers/api/v1/flows/get-flow.js';
|
||||
import updateFlowAction from '../../../controllers/api/v1/flows/update-flow.js';
|
||||
import updateFlowStatusAction from '../../../controllers/api/v1/flows/update-flow-status.js';
|
||||
import updateFlowFolderAction from '../../../controllers/api/v1/flows/update-flow-folder.js';
|
||||
import createFlowAction from '../../../controllers/api/v1/flows/create-flow.js';
|
||||
import createStepAction from '../../../controllers/api/v1/flows/create-step.js';
|
||||
import deleteFlowAction from '../../../controllers/api/v1/flows/delete-flow.js';
|
||||
@@ -19,6 +20,20 @@ router.get('/:flowId', authenticateUser, authorizeUser, getFlowAction);
|
||||
router.post('/', authenticateUser, authorizeUser, createFlowAction);
|
||||
router.patch('/:flowId', authenticateUser, authorizeUser, updateFlowAction);
|
||||
|
||||
router.patch(
|
||||
'/:flowId/status',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
updateFlowStatusAction
|
||||
);
|
||||
|
||||
router.patch(
|
||||
'/:flowId/folder',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
updateFlowFolderAction
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:flowId/export',
|
||||
authenticateUser,
|
||||
@@ -28,13 +43,6 @@ router.post(
|
||||
|
||||
router.post('/import', authenticateUser, authorizeUser, importFlowAction);
|
||||
|
||||
router.patch(
|
||||
'/:flowId/status',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
updateFlowStatusAction
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:flowId/steps',
|
||||
authenticateUser,
|
||||
|
||||
Reference in New Issue
Block a user