feat: Implement get step connection API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-13 15:24:50 +01:00
parent d6923a2ff0
commit 9a0434be32
7 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { Router } from 'express';
import asyncHandler from 'express-async-handler';
import { authenticateUser } from '../../../helpers/authentication.js';
import { authorizeUser } from '../../../helpers/authorization.js';
import getConnectionAction from '../../../controllers/api/v1/steps/get-connection.js';
const router = Router();
router.get(
'/:stepId/connection',
authenticateUser,
authorizeUser,
asyncHandler(getConnectionAction)
);
export default router;