title: How can I have multiple API endpoints for one Google Cloud Function?
body: <p>I have a Google Cloud Function which contains multiple modules to be invoked on different paths.</p>
  <p>I am using the serverless framework to deploy my functions, but it has the limitation of only one path per function.</p>
  <p>I want to use multiple paths in one function just like we can in the AWS serverless framework.</p>
  <p>Suppose a <code>user</code> cloud function will have two paths <code>/user/add</code> as well as <code>/user/remove</code>; both the paths should invoke the same function.</p>
  <p>Something like this:</p>
  <p><code>serverless.yml</code></p>
  <pre><code>functions:
    user:
      handler: handle
      events:
        - http: user/add
        - http: user/remove
  </code></pre>
  <p>How can I have multiple API endpoints for one GCF?</p>