Alexandru Simandi
05/06/2022, 10:05 AMBrinsley
05/06/2022, 10:56 AMFunction
and use that for the routes.Alexandru Simandi
05/06/2022, 12:34 PMAlexandru Simandi
05/06/2022, 12:58 PMthis.requestHandler = new sst.Function(this, "HttpHandler", {
handler: "src/service/httpRequestsHandler.handler",
environment: {
...props.sharedEnvVars,
...props.httpHandler.environment,
},
});
and i am just passing it
"GET /notes": this.handler
i am gettign the same effect if i do
"GET /notes": {
authorizer: "none",
function: this.requestHandler
}
thdxr
05/06/2022, 3:44 PMAlexandru Simandi
05/06/2022, 5:34 PM