Constructs a new instance of the Router class.
The configuration object for the router.
None
Protected
Readonly
configThe configuration object for the router.
Protected
Readonly
routeA protected property that holds a RouteResolver object. The RouteResolver is responsible for resolving routes and returning the appropriate response.
Returns a callable function that is bound to the handleServerlessEvent
method of the current object.
handleServerlessEvent
method.Handles a serverless event by executing a transaction and resolving the route based on the event.
The serverless event object.
The serverless context object.
None
Represents a server that handles serverless events and routes them to appropriate handlers.