Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Last active January 15, 2020 20:48
Show Gist options
  • Save tianhaoz95/70fdfc669555a45fabb3ba5b5df22db6 to your computer and use it in GitHub Desktop.
Save tianhaoz95/70fdfc669555a45fabb3ba5b5df22db6 to your computer and use it in GitHub Desktop.
In app version of Firebase API
export const internalAwesomeAPI = functions.https.onCall(async (data, fbContext) => {
const context: FunctionContext = provider.fbContext2context(fbContext);
const intermediateRequest: IntermediateRequestInterface = parseIntermediateRequest(data);
await awesomeHandler(intermediateRequest, context);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment