title: How can I use AWS CloudFront and API Gateway side by side for the same domain?
body: <p>I'm putting that static assets of my website on S3, and setting up CloudFront to distribute them. These essentially holds the content users would need for any GET request on my site, to existing paths that is, with a catchall for errors.</p>
  
  <p>I also have some POST requests I need to handle. Form submissions, sending emails, notifications, interacting with the database.</p>
  
  <p>How can I set up Lambda (or API Gateway) side by side with CloudFront for the same domain so that CloudFront handles GET requests, and API Gateway handles requests with a body or POST requests. Or can I do it by individual URL somehow?</p>