GET a script ID to stop that script
(script_id)
| 68 | |
| 69 | @api.route('/stop/<script_id>', methods=['GET']) |
| 70 | def _stop_script(script_id): |
| 71 | """GET a script ID to stop that script""" |
| 72 | message = "" |
| 73 | if request.method == 'GET': |
| 74 | if script_id == "all": |
| 75 | message += scripts.stop_all() |
| 76 | else: |
| 77 | message += scripts.stop_script(script_id) |
| 78 | return message |
| 79 | |
| 80 | |
| 81 | @api.route('/<name>/<loop>', methods=['GET']) |
nothing calls this directly
no test coverage detected