Merge pull request #2446 from automatisch/public-api-get-apps

feat(api): add get-apps endpoint
This commit is contained in:
Ali BARIN
2025-04-23 16:06:59 +02:00
committed by GitHub
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;