import glob from os.path import dirname, basename, isfile from flask import Blueprint from data_health.views.performance_metrics_data_health import PerformanceMetricsDataHealthView from data_health.views.reporting_metrics_view import ProjectReportingDataHealthView modules = glob.glob(dirname(__file__) + "/*.py") __all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")] blueprint = Blueprint("data_health", __name__) blueprint.add_url_rule( "/data-health/performance/metrics", view_func=PerformanceMetricsDataHealthView.as_view("performance_metrics_data_health"), ) blueprint.add_url_rule( "/projects//reporting/data-health", view_func=ProjectReportingDataHealthView.as_view("project_reporting_data_health"), )