`ApiGatewayV1Api` construct is the REST API, and ...
# help
ö
ApiGatewayV1Api
construct is the REST API, and
Api
construct is the HTTP API, am I mistaken?
m
Api
uses ApigatewayV2 under the hood.
ö
Yes, I see thanks!
m
If you want to learn more, Read the first paragraph https://docs.serverless-stack.com/constructs/ApiGatewayV1Api
ö
Copy code
const 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?
m
Yes
ö
Thanks!