feat: Implement rest api endpoint to test step

This commit is contained in:
Faruk AYDIN
2024-09-02 13:00:28 +03:00
parent d3dc207166
commit 6ca8e8958a
7 changed files with 274 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,