feat(api): add get template endpoint

This commit is contained in:
Ali BARIN
2025-04-25 09:58:15 +00:00
parent f1fa0d4b2a
commit aae4511013
5 changed files with 66 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
const getTemplateMock = async (template) => {
const data = {
id: template.id,
name: template.name,
createdAt: template.createdAt.getTime(),
updatedAt: template.updatedAt.getTime(),
flowData: template.getFlowDataWithIconUrls(),
};
return {
data: data,
meta: {
count: 1,
currentPage: null,
isArray: false,
totalPages: null,
type: 'Template',
},
};
};
export default getTemplateMock;