Merge pull request #2055 from automatisch/rest-test-step

feat: Implement rest api endpoint to test step
This commit is contained in:
Ömer Faruk Aydın
2024-09-02 15:22:10 +03:00
committed by GitHub
9 changed files with 303 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import { Router } from 'express';
import { authenticateUser } from '../../../helpers/authentication.js';
import { authorizeUser } from '../../../helpers/authorization.js';
import getConnectionAction from '../../../controllers/api/v1/steps/get-connection.js';
import testStepAction from '../../../controllers/api/v1/steps/test-step.js';
import getPreviousStepsAction from '../../../controllers/api/v1/steps/get-previous-steps.js';
import createDynamicFieldsAction from '../../../controllers/api/v1/steps/create-dynamic-fields.js';
import createDynamicDataAction from '../../../controllers/api/v1/steps/create-dynamic-data.js';
@@ -16,6 +17,8 @@ router.get(
getConnectionAction
);
router.post('/:stepId/test', authenticateUser, authorizeUser, testStepAction);
router.get(
'/:stepId/previous-steps',
authenticateUser,