feat: Implement get connection flows API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-10 16:11:07 +01:00
parent c1740aae6c
commit 6027cb7cb0
6 changed files with 171 additions and 1 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 getFlowsAction from '../../../controllers/api/v1/connections/get-flows.js';
const router = Router();
router.get(
'/:connectionId/flows',
authenticateUser,
authorizeUser,
asyncHandler(getFlowsAction)
);
export default router;