MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / printerModel

Function printerModel

src/astroprint/api/cloud.py:189–195  ·  view source on GitHub ↗
(model_id)

Source from the content-addressed store, hash-verified

187
188@api.route("/astroprint/manufacturers/models/<string:model_id>", methods=["GET"])
189def 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

Callers

nothing calls this directly

Calls 2

astroprintCloudFunction · 0.90
printerModelMethod · 0.80

Tested by

no test coverage detected