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,6 +2,7 @@ import { renderObject } from '../../../../helpers/renderer.js';
export default async (request, response) => {
const flow = await request.currentUser.authorizedFlows
.clone()
.withGraphJoined({ steps: true })
.orderBy('steps.position', 'asc')
.findOne({ 'flows.id': request.params.flowId })