feat: Implement get apps API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-01 14:21:41 +01:00
parent 53b03f8231
commit 53606c306d
4 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
const getAppsMock = (apps) => {
const appsData = apps.map((app) => ({
authDocUrl: app.authDocUrl,
iconUrl: app.iconUrl,
key: app.key,
name: app.name,
primaryColor: app.primaryColor,
supportsConnections: app.supportsConnections,
}));
return {
data: appsData,
meta: {
count: appsData.length,
currentPage: null,
isArray: true,
totalPages: null,
type: 'Object',
},
};
};
export default getAppsMock;