refactor: Rename create test action as test connection

This commit is contained in:
Faruk AYDIN
2024-08-26 16:26:03 +03:00
parent 22002d50ac
commit ce6214dc0f
3 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import asyncHandler from 'express-async-handler';
import { authenticateUser } from '../../../helpers/authentication.js'; import { authenticateUser } from '../../../helpers/authentication.js';
import { authorizeUser } from '../../../helpers/authorization.js'; import { authorizeUser } from '../../../helpers/authorization.js';
import getFlowsAction from '../../../controllers/api/v1/connections/get-flows.js'; import getFlowsAction from '../../../controllers/api/v1/connections/get-flows.js';
import createTestAction from '../../../controllers/api/v1/connections/create-test.js'; import testConnectionAction from '../../../controllers/api/v1/connections/test-connection.js';
const router = Router(); const router = Router();
@@ -18,7 +18,7 @@ router.post(
'/:connectionId/test', '/:connectionId/test',
authenticateUser, authenticateUser,
authorizeUser, authorizeUser,
asyncHandler(createTestAction) asyncHandler(testConnectionAction)
); );
export default router; export default router;