title: Passing multiple optional parameters in URL (AWS lambda functions and Node js)
body: <p>I am trying to pass multiple parameters in the url, however I've tried multiple syntaxes and none of them seem to work.
  I am trying to pass the value of rooms and bathrooms through the URL, and they are optional not required.</p>
  <p>Here is my current code in the index.ts file:</p>
  <pre><code>import { handlerPath } from '@libs/handlerResolver';
  export default {
    handler: `${handlerPath(__dirname)}/handler.main`,
    events: [
      {
        http: {
          method: 'post',
          path: 'filter?rooms=val1&amp;baths=val2',
        }
      }
    ]
  }
  </code></pre>
  <p>So far I have been using urls that only accept one parameter using the following syntax:</p>
  <pre><code>import { handlerPath } from &quot;@libs/handlerResolver&quot;;
  const getProperty = {
    handler: `${handlerPath(__dirname)}/handler.main`,
    events: [
      {
        http: {
          method: &quot;get&quot;,
          path: &quot;properties/{id}&quot;,
        },
      },
    ],
  };
  export default getProperty;
  </code></pre>