(model_id)
| 187 | |
| 188 | @api.route("/astroprint/manufacturers/models/<string:model_id>", methods=["GET"]) |
| 189 | def printerModel(model_id): |
| 190 | printerModel = astroprintCloud().printerModel(model_id) |
| 191 | |
| 192 | if 'error' in printerModel: |
| 193 | return abort(500, printerModel['error']) |
| 194 | else: |
| 195 | return json.dumps(printerModel) |
| 196 | |
| 197 | @api.route("/astroprint/print-files/<string:print_file_id>/download", methods=["GET"]) |
| 198 | @restricted_access |
nothing calls this directly
no test coverage detected