diff --git a/frigate/api/app.py b/frigate/api/app.py index f06d9a20a..321bd5758 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -162,9 +162,9 @@ def config(): config["plus"] = {"enabled": current_app.plus_api.is_active()} for detector, detector_config in config["detectors"].items(): - detector_config["model"][ - "labelmap" - ] = current_app.frigate_config.model.merged_labelmap + detector_config["model"]["labelmap"] = ( + current_app.frigate_config.model.merged_labelmap + ) return jsonify(config) diff --git a/frigate/api/event.py b/frigate/api/event.py index e18f5d366..32aa42146 100644 --- a/frigate/api/event.py +++ b/frigate/api/event.py @@ -591,6 +591,7 @@ def set_sub_label(id): 200, ) + @EventBp.route("/events/", methods=("DELETE",)) def delete_event(id): try: diff --git a/frigate/api/media.py b/frigate/api/media.py index 3cce18a33..6e986af0b 100644 --- a/frigate/api/media.py +++ b/frigate/api/media.py @@ -740,6 +740,7 @@ def export_delete(file_name: str): 200, ) + @MediaBp.route("//