mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
add service to get by id
This commit is contained in:
parent
f72eaf781c
commit
8bed4e9970
@ -63,6 +63,10 @@ def events_summary():
|
||||
|
||||
return jsonify([e for e in groups.dicts()])
|
||||
|
||||
@bp.route('/events/<id>')
|
||||
def event(id):
|
||||
return model_to_dict(Event.get(Event.id == id))
|
||||
|
||||
@bp.route('/events')
|
||||
def events():
|
||||
limit = request.args.get('limit', 100)
|
||||
|
Loading…
Reference in New Issue
Block a user