feat: write PATCH /v1/flows/:flowId

This commit is contained in:
Ali BARIN
2024-08-29 14:16:17 +00:00
parent 35bada360d
commit 9519ec53ef
5 changed files with 196 additions and 4 deletions

View File

@@ -3,10 +3,12 @@ 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';
import updateFlowAction from '../../../controllers/api/v1/flows/update-flow.js';
const router = Router();
router.get('/', authenticateUser, authorizeUser, getFlowsAction);
router.get('/:flowId', authenticateUser, authorizeUser, getFlowAction);
router.patch('/:flowId', authenticateUser, authorizeUser, updateFlowAction);
export default router;