Skip to content

Instantly share code, notes, and snippets.

@ilyaskarim
Created April 5, 2020 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilyaskarim/f20a8b34193486c4a2fa3ca4209bc5b5 to your computer and use it in GitHub Desktop.
Save ilyaskarim/f20a8b34193486c4a2fa3ca4209bc5b5 to your computer and use it in GitHub Desktop.
Context in Rest API
// Consider below function as Expess JS Rest Api Handler
function (req,res) {
// context is available in req.[context_name] and configuration passed context is available at req.context
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment