Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Davis chrisguitarguy

View GitHub Profile
@svieira
svieira / app.py
Last active Oct 21, 2019
Example sub-mounted Flask application
View app.py
from flask import Flask, url_for
from werkzeug.serving import run_simple
from werkzeug.wsgi import DispatcherMiddleware
app = Flask(__name__)
app.config["APPLICATION_ROOT"] = "/abc/123"
@app.route("/")
def index():