feat: Implement get flows API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-08 23:10:28 +01:00
parent 209ec27a29
commit ea64708c69
8 changed files with 185 additions and 0 deletions

View File

@@ -2,10 +2,13 @@ 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/flows/get-flows.js';
import getFlowAction from '../../../controllers/api/v1/flows/get-flow.js';
const router = Router();
router.get('/', authenticateUser, authorizeUser, asyncHandler(getFlowsAction));
router.get(
'/:flowId',
authenticateUser,