mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Update view.py
This commit is contained in:
parent
ad98d4490a
commit
59baf2cde2
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ class StreamView(FlaskView):
|
|||
data = request.get_json()
|
||||
sids = data['sids']
|
||||
for sid in sids:
|
||||
server.start_stream(sid)
|
||||
server.stop_stream(sid)
|
||||
return jsonify(status='ok'), 200
|
||||
return jsonify(status='failed'), 404
|
||||
|
||||
|
@ -52,7 +52,7 @@ class StreamView(FlaskView):
|
|||
data = request.get_json()
|
||||
sids = data['sids']
|
||||
for sid in sids:
|
||||
server.start_stream(sid)
|
||||
server.restart_stream(sid)
|
||||
return jsonify(status='ok'), 200
|
||||
return jsonify(status='failed'), 404
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue