UNPKG

serverless-docker

Version:

This is a proof of concept to see if we can replicate Amazon API Gateway using docker images to run lambda

15 lines (11 loc) 363 B
'use strict' const authorizers = { custom: require('./custom-authorizer'), // eslint-disable-line global-require } const authorize = (context, authorizationToken, logger) => { const authorizer = authorizers['custom'] // eslint-disable-line dot-notation return authorizer.authorize(context, authorizationToken, logger) } module.exports = { authorize, }