refactor: Use internal namespace for the existing API

This commit is contained in:
Faruk AYDIN
2025-04-17 19:47:03 +02:00
parent 53f0d80c80
commit cddfbad68a
354 changed files with 2275 additions and 2195 deletions

View File

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