"""Projects and campaigns API and business logic.""" from flask import Blueprint import glob from os.path import dirname, basename, isfile from reporting.views.project_reporting_metrics_view import ProjectReportingMetricsView 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("reporting", __name__) blueprint.add_url_rule( "/projects//reporting/metrics", view_func=ProjectReportingMetricsView.as_view("project_reporting_metrics"), )