Created
October 31, 2013 23:53
-
-
Save Drakekin/7259085 to your computer and use it in GitHub Desktop.
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
| app = Flask(__name__) | |
| registered_blueprints = {} | |
| for blueprint, subdomains in blueprints: | |
| for subdomain in subdomains: | |
| app.register_blueprint(blueprint, subdomain=subdomain) | |
| registered_blueprints[subdomain.lower()] = blueprint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment