Skip to content

Instantly share code, notes, and snippets.

@killthekitten
Created June 9, 2019 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killthekitten/9515ee778b93711c6f3117bd2796b389 to your computer and use it in GitHub Desktop.
Save killthekitten/9515ee778b93711c6f3117bd2796b389 to your computer and use it in GitHub Desktop.
flask run + DispatcherMiddleware demo
from flask import Flask
from werkzeug.middleware.dispatcher import DispatcherMiddleware
api = Flask("api")
admin = Flask("admin")
app = DispatcherMiddleware(api, {"/admin": admin})
Flask==1.0.3
werkzeug==0.15.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment