UNPKG

@appsemble/node-utils

Version:

NodeJS utilities used by Appsemble internally.

8 lines 434 B
export function createGetCurrentAppMemberGroupsController({ getApp, getCurrentAppMemberGroups, }) { return async (ctx) => { const { pathParams: { appId }, } = ctx; const app = await getApp({ context: ctx, query: { where: { id: appId }, attributes: ['id'] } }); ctx.body = await getCurrentAppMemberGroups({ context: ctx, app }); }; } //# sourceMappingURL=createGetCurrentAppMemberGroupsController.js.map