@appsemble/node-utils
Version:
NodeJS utilities used by Appsemble internally.
11 lines • 437 B
JavaScript
export function createGetCurrentAppMemberController({ getApp, getCurrentAppMember, }) {
return async (ctx) => {
const { appId } = ctx.pathParams;
const app = await getApp({
context: ctx,
query: { where: { id: appId }, attributes: ['id'] },
});
ctx.body = await getCurrentAppMember({ context: ctx, app });
};
}
//# sourceMappingURL=createGetCurrentAppMemberController.js.map