forked from Github/frigate
initial conversion to pydantic
This commit is contained in:
committed by
Blake Blackshear
parent
dada764d2c
commit
c664bd63f6
@@ -272,7 +272,14 @@ def events():
|
||||
|
||||
@bp.route("/config")
|
||||
def config():
|
||||
return jsonify(current_app.frigate_config.to_dict())
|
||||
return jsonify(current_app.frigate_config.dict())
|
||||
|
||||
|
||||
@bp.route("/config/schema")
|
||||
def config_schema():
|
||||
return current_app.response_class(
|
||||
current_app.frigate_config.schema_json(), mimetype="application/json"
|
||||
)
|
||||
|
||||
|
||||
@bp.route("/version")
|
||||
|
||||
Reference in New Issue
Block a user