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

Function isCameraSupportedByAstrobox

src/astroprint/api/camera.py:16–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14@api.route("/camera/is-camera-supported", methods=["GET"])
15@restricted_access
16def isCameraSupportedByAstrobox():
17 cm = cameraManager()
18
19 return jsonify({"isCameraSupported": cm.settingsStructure() is not None})
20
21@api.route("/camera/refresh-plugged", methods=["POST"])
22@restricted_access

Callers

nothing calls this directly

Calls 2

cameraManagerFunction · 0.90
settingsStructureMethod · 0.45

Tested by

no test coverage detected