title: aws api gateway & lambda: multiple endpoint/functions vs single endpoint
body: <p>I have an AWS api that proxies lamba functions. I currently use different endpoints with separate lambda functions:</p>
  
  <pre><code>api.com/getData --&gt; getData
  api.com/addData --&gt; addData
  api.com/signUp --&gt; signUp
  </code></pre>
  
  <p>The process to manage all the endpoints and functions becomes cumbersome. Is there any disadvantage when I use a single endpoint to one lambda function which decides what to do based on the query string?</p>
  
  <pre><code>api.com/exec&amp;func=getData --&gt; exec --&gt; if(params.func === 'getData') { ... }
  </code></pre>