Skip to content

Instantly share code, notes, and snippets.

@Drakekin
Created October 31, 2013 23:53
Show Gist options
  • Select an option

  • Save Drakekin/7259085 to your computer and use it in GitHub Desktop.

Select an option

Save Drakekin/7259085 to your computer and use it in GitHub Desktop.
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