š Api Infrastructure
The api.ts
file creates API endpoints using AWS API Gateway (opens in a new tab).
It sets up routes for handling Stripe webhooks and configures necessary permissions and environment variables for the associated Lambda functions.
Currently, Blitzship only uses this file to set up a webhook endpoint for receiving webhooks from Stripe.
Check out SST's ApiGatewayV2
component (opens in a new tab) for more information.