code: def register_blueprints(app, application_package_name=None, blueprint_directory=None):
      
      if not application_package_name:
          application_package_name = 'app'
  
      if not blueprint_directory:
          blueprint_directory = os.path.join(os.getcwd(), application_package_name)
  
      blueprint_directories = get_child_directories(blueprint_directory)
  
      for directory in blueprint_directories:
          abs_package = '{}.{}'.format(application_package_name, directory)
  
          service = importlib.import_module(abs_package)
          app.register_blueprint(service.blueprint_api, url_prefix='')
docs: Register Flask blueprints on app object