This package contains core base classes that help in the creation of injectable lambdas and handlers that are also Middyfied.
As of now the only Lambda and Handler implemented are the ones for the APIGateway, that means
lambdas capable of handling APIGatewayProxyEventV2 => APIGatewayProxyResultV2.
To create a Lambda, we have to create a subclass of the BaseApiLambda, and configure it according to our needs.
The configurable variables are the following:
handlerrequired & injected - This should be the class (constructor) of the handler for this lambda, which should be a subclass of BaseHandler.BaseApiLambdauses Dependency Injection to resolve the handler, with all the dependencies declared inmodules.modulesoptional && injected - These are all the dependencies that ourhandler,middlewaresor even othermodulesmay need to be resolved. It's an array of classes (constructors) that should be a sublcass of Module.middlewaresoptional && injected - These are all the middlewares that we can optionally add to our lambda. It's an array of classess (constructors) that should be a subclass of BaseMiddleware.
This BaseApiLambda includes by default an injected Logger and a
ResponseLoggerMiddleware.
TODO