Added webcontrol API

This commit is contained in:
ashish committed 2023-05-21 19:49:49 -04:00
1 parent a13f099e14
commit ce6b363d4e
11 files changed
+154 -15

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
from flask import Flask, jsonify
import detection
app = Flask(__name__)
app.register_blueprint(detection.blueprint)
@app.route('/', methods=['GET'])
def home_GET():
return jsonify({
'status': 'success',
'name': 'webcontrol',
'description': 'This is a custom webcontrol API for Frigate that allows minimal control over the NVR system through an HTTP API'
}), 200
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, debug=False)