From 8bed4e9970d8a97c621391e396a207f71d91cb76 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 24 Nov 2020 15:44:59 -0600 Subject: [PATCH] add service to get by id --- frigate/http.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frigate/http.py b/frigate/http.py index a2b16857f..df04c6148 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -63,6 +63,10 @@ def events_summary(): return jsonify([e for e in groups.dicts()]) +@bp.route('/events/') +def event(id): + return model_to_dict(Event.get(Event.id == id)) + @bp.route('/events') def events(): limit = request.args.get('limit', 100)