API - Ability to add/import bulk list of watches as a line-feed separated list (#2021)

This commit is contained in:
dgtlmoon
2023-12-01 18:38:49 +01:00
committed by GitHub
parent f0823126c8
commit 8e207ba438
4 changed files with 84 additions and 2 deletions

View File

@@ -239,6 +239,10 @@ def changedetection_app(config=None, datastore_o=None):
watch_api.add_resource(api_v1.SystemInfo, '/api/v1/systeminfo',
resource_class_kwargs={'datastore': datastore, 'update_q': update_q})
watch_api.add_resource(api_v1.Import,
'/api/v1/import',
resource_class_kwargs={'datastore': datastore})
# Setup cors headers to allow all domains
# https://flask-cors.readthedocs.io/en/latest/
# CORS(app)