Added webcontrol API
This commit is contained in:
1 parent
a13f099e14
commit
ce6b363d4e
11 files changed
+154
-15
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user