Created
June 9, 2019 12:18
-
-
Save killthekitten/9515ee778b93711c6f3117bd2796b389 to your computer and use it in GitHub Desktop.
flask run + DispatcherMiddleware demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from werkzeug.middleware.dispatcher import DispatcherMiddleware | |
api = Flask("api") | |
admin = Flask("admin") | |
app = DispatcherMiddleware(api, {"/admin": admin}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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