def register_routes(app):
from . import controllers<EOL>from flask.blueprints import Blueprint<EOL>for module in _import_submodules_from_package(controllers):<EOL><INDENT>bp = getattr(module, '<STR_LIT>')<EOL>if bp and isinstance(bp, Blueprint):<EOL><INDENT>app.register_blueprint(bp)<EOL><DEDENT><DEDENT>
Register routes.