title: How to properly routes all the nodejs express app request in google cloud functions
body: <p>I have created an express app which is working pretty fine but when I'm trying to host the web app using firebase cloud functions  the url rewrites rules in firebase.json seems to be not working properly.</p>
  
  <p>code snippet from index.js file under functions folder</p>
  
  <pre><code>exports.app = functions.https.onRequest(app);
  </code></pre>
  
  <p>here is the snippet from firebase.json file</p>
  
  <pre><code>  "rewrites": [
    {
      "source": "/**{,/**}",
      "function": "app"
    }
  </code></pre>
  
  <p>I have also tried</p>
  
  <pre><code>  "rewrites": [
    {
      "source": "**",
      "function": "app"
    }
  </code></pre>
  
  <p>but none of the is working.
  I want all my webapp's url request from "<a href="http://url/someroute" rel="nofollow noreferrer">http://url/someroute</a>" to get routed to "<a href="http://url.com/app/someroute" rel="nofollow noreferrer">http://url.com/app/someroute</a>"</p>
  
  <p>Right now for now all of this to work I have to change my hyperlinks from "/someroute" to "/app/someroute"</p>