()
| 56 | @api.route("/additional-tasks/install", methods=["POST"]) |
| 57 | @restricted_access |
| 58 | def installTask(): |
| 59 | data = request.json |
| 60 | file = data.get('file', None) |
| 61 | if file: |
| 62 | atm = additionalTasksManager() |
| 63 | if atm.installFile(file): |
| 64 | return jsonify() |
| 65 | else: |
| 66 | return make_response('Unable to Install', 500) |
| 67 | |
| 68 | return make_response('Invalid Request', 400) |
nothing calls this directly
no test coverage detected