title: AWS HTTP Gateway: Multiple Methods for same Route excluding OPTIONS with Serverless Framework
body: <p>I'm pretty excited about HTTP Gateways due to the drastically reduced pricing in comparison to REST Gateways, but I'm stuck on creating routes that do not completely blow up my <code>serverless.yml</code> file.</p>
  <p>The documentation for <a href="https://www.serverless.com/framework/docs/providers/aws/events/http-api/" rel="noreferrer">HTTP Gateway at Serverless</a> describes this to define routes:</p>
  <pre><code>functions:
    params:
      handler: handler.params
      events:
        - httpApi:
            method: GET
            path: /get/for/any/{param}
  </code></pre>
  <p>There is a support for <code>'*'</code>, but this causes issues with <code>OPTIONS</code> cause those will overwrite the created CORS policies (so OPTIONS requests would actually get to the application, which does not make any sense, especially if the route is protected via an authorizer).</p>
  <p>Also, it's not possible to define multiple methods.</p>
  <pre><code># does not work
  method: GET,POST,DELETE
  
  # also not possible
  method:
   - GET
   - POST
   - DELETE
  </code></pre>
  <p>The only configuration I found is to define all routes separately:</p>
  <pre><code>events:
    - httpApi:
        path: /someApi/{proxy+}
        method: GET
    - httpApi:
        path: /someApi/{proxy+}
        method: POST
    - httpApi:
        path: /someApi/{proxy+}
        method: DELETE
  </code></pre>
  <p>This works fine &amp; the UI is even bundling the routes cause they're on the same prefixed path:</p>
  <p><a href="https://i.stack.imgur.com/s3efw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/s3efw.png" alt="enter image description here" /></a></p>
  <p>But with this I have to define all HTTP methods for all my main resources separately including the attached authorizer.</p>
  <p><strong>Is there some way to combine this?</strong></p>