()
| 408 | @api.route("/settings/software/plugins/install", methods=["POST"]) |
| 409 | @restricted_access |
| 410 | def installSoftwarePlugin(): |
| 411 | data = request.json |
| 412 | file = data.get('file', None) |
| 413 | if file: |
| 414 | pm = pluginManager() |
| 415 | if pm.installFile(file): |
| 416 | return jsonify() |
| 417 | else: |
| 418 | return make_response('Unable to Install', 500) |
| 419 | |
| 420 | return make_response('Invalid Request', 400) |
| 421 | |
| 422 | @api.route("/settings/software/license", methods=["GET"]) |
| 423 | @restricted_access |
nothing calls this directly
no test coverage detected