from apiflask import APIBlueprint from .workshop_ctl import bp as workshop_bp from .device_ctl import bp as device_bp from .endpoint_ctl import bp as endpoint_bp from .node_ctl import bp as node_bp from .alert_rule_ctl import bp as alert_rule_bp from .alert_log_ctl import bp as alert_log_bp from .alert_push_ctl import bp as alert_push_bp iot_bp = APIBlueprint("iot", __name__, url_prefix="/iot") def register_iot_bp(app): iot_bp.register_blueprint(workshop_bp) iot_bp.register_blueprint(device_bp) iot_bp.register_blueprint(endpoint_bp) iot_bp.register_blueprint(node_bp) iot_bp.register_blueprint(alert_rule_bp) iot_bp.register_blueprint(alert_log_bp) iot_bp.register_blueprint(alert_push_bp) app.register_blueprint(iot_bp)