feat: Implement get connection flows API endpoint
This commit is contained in:
16
packages/backend/src/routes/api/v1/connections.js
Normal file
16
packages/backend/src/routes/api/v1/connections.js
Normal 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;
|
Reference in New Issue
Block a user