feat(api): add create flow endpoint for users

This commit is contained in:
Ali BARIN
2025-04-24 23:03:42 +00:00
parent 379b66b21e
commit bd0732347d
5 changed files with 117 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
const createFlowMock = async (flow) => {
const data = {
id: flow.id,
active: flow.active,
name: flow.name,
status: flow.status,
createdAt: flow.createdAt.getTime(),
updatedAt: flow.updatedAt.getTime(),
};
return {
data: data,
meta: {
count: 1,
currentPage: null,
isArray: false,
totalPages: null,
type: 'Flow',
},
};
};
export default createFlowMock;