feat(api): add get-apps endpoint

This commit is contained in:
Ali BARIN
2025-04-23 12:06:06 +00:00
parent e95ffb44e4
commit 0ea28d70ad
8 changed files with 193 additions and 65 deletions

View File

@@ -0,0 +1,24 @@
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,
supportsOauthClients: app?.auth?.generateAuthUrl ? true : false,
}));
return {
data: appsData,
meta: {
count: appsData.length,
currentPage: null,
isArray: true,
totalPages: null,
type: 'Object',
},
};
};
export default getAppsMock;