Add API route for printer information

This commit is contained in:
n07070
2026-11-12 15:35:01 +01:00
parent 99bf70d3f7
commit 3e4231938e

View File

@@ -358,6 +358,10 @@ def api_worker_stop():
worker.stop_worker()
return jsonify(worker.current_state())
@app.route("/api/printers")
def api_printers_info():
"""Returns the current state of every printers"""
return jsonify(printers_pool.printers_info())
## Authentification