feat: Implement rest API endpoint to verify connection
This commit is contained in:
@@ -4,6 +4,7 @@ import { authenticateUser } from '../../../helpers/authentication.js';
|
||||
import { authorizeUser } from '../../../helpers/authorization.js';
|
||||
import getFlowsAction from '../../../controllers/api/v1/connections/get-flows.js';
|
||||
import testConnectionAction from '../../../controllers/api/v1/connections/test-connection.js';
|
||||
import verifyConnectionAction from '../../../controllers/api/v1/connections/verify-connection.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
@@ -21,4 +22,11 @@ router.post(
|
||||
asyncHandler(testConnectionAction)
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:connectionId/verify',
|
||||
authenticateUser,
|
||||
authorizeUser,
|
||||
asyncHandler(verifyConnectionAction)
|
||||
);
|
||||
|
||||
export default router;
|
||||
|
Reference in New Issue
Block a user