title: How to route all requests to a singe azure function and maintain the route
body: <p>I'm trying to run a Flask app in an Azure function to handle a small website. I can't figure out how to get the routing and proxying in Azure to work. Here's the flask app.</p>
  
  <pre><code>import logging
  
  import azure.functions as func
  import mimetypes
  
  from flask import Flask, render_template
  from azf_wsgi import AzureFunctionsWsgi
  
  app = Flask(__name__)
  
  @app.route('/')
  def home():
      return render_template('index.html')
  
  @app.route('/got')
  def got():
      return render_template('got.html')
  
  def main(req: func.HttpRequest) -&gt; func.HttpResponse:
      return AzureFunctionsWsgi(app).main(req)
  </code></pre>
  
  <p>Now what I want to do is route all incoming HTTP requests to my function app to this single function in a way that the paths match the routes in the Flask app. I've tried many different configurations of proxies.json and host.json, but non work. </p>