Skip to content

Commit

Permalink
LAMBDA_API_ENDPOINT async-labs#18
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Apr 22, 2019
1 parent 2c62e53 commit cba93c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/lib/api/team-member.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import sendRequestAndGetResponse from './sendRequestAndGetResponse';

import env from '../env';

const { LAMBDA_API_ENDPOINT } = env;

const BASE_PATH = '/api/v1/team-member';

export const getInitialData = (options: any = {}) =>
Expand Down Expand Up @@ -99,6 +103,6 @@ export const toggleTheme = data =>
});

export const sendUserIdsToLambda = data =>
sendRequestAndGetResponse('/api-gateway-for-lambda', {
sendRequestAndGetResponse(`${LAMBDA_API_ENDPOINT}/`, {
body: JSON.stringify(data),
});

0 comments on commit cba93c4

Please sign in to comment.