Ömer Toraman
10/17/2021, 4:19 PMApiGatewayV1Api
construct is the REST API, and Api
construct is the HTTP API, am I mistaken?manitej
10/17/2021, 4:23 PMApi
uses ApigatewayV2 under the hood.Ömer Toraman
10/17/2021, 4:23 PMmanitej
10/17/2021, 4:24 PMÖmer Toraman
10/17/2021, 4:30 PMconst api = new sst.ApiGatewayV1Api(this, 'Api', {
routes: {
'POST /create-event': 'src/handlers/apiGateway/create-event/index.main'
}
})
I want to add the Endpoint to the URL, I’m not really sure which property I need to use, I guess it is api.url
, right?manitej
10/17/2021, 4:39 PMÖmer Toraman
10/17/2021, 4:43 PM