17 lines
444 B
JavaScript
17 lines
444 B
JavaScript
import { Router } from 'express';
|
|
import asyncHandler from 'express-async-handler';
|
|
import { authenticateUser } from '../../../helpers/authentication.js';
|
|
import { authorizeUser } from '../../../helpers/authorization.js';
|
|
import getFlowAction from '../../../controllers/api/v1/flows/get-flow.js';
|
|
|
|
const router = Router();
|
|
|
|
router.get(
|
|
'/:flowId',
|
|
authenticateUser,
|
|
authorizeUser,
|
|
asyncHandler(getFlowAction)
|
|
);
|
|
|
|
export default router;
|