API - Adding basic system info/system state API (#1051)

This commit is contained in:
dgtlmoon
2022-10-23 19:15:11 +02:00
committed by GitHub
parent 492bbce6b6
commit 5d40e16c73
4 changed files with 46 additions and 3 deletions

View File

@@ -194,6 +194,9 @@ def changedetection_app(config=None, datastore_o=None):
watch_api.add_resource(api_v1.Watch, '/api/v1/watch/<string:uuid>',
resource_class_kwargs={'datastore': datastore, 'update_q': update_q})
watch_api.add_resource(api_v1.SystemInfo, '/api/v1/systeminfo',
resource_class_kwargs={'datastore': datastore, 'update_q': update_q})