Multi-printers #32

Open
n07070 wants to merge 80 commits from multi-printers into master
pull from: multi-printers
Showing only changes of commit 3e4231938e - Show all commits
+4
View File
@@ -358,6 +358,10 @@ def api_worker_stop():
worker.stop_worker() worker.stop_worker()
return jsonify(worker.current_state()) 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 ## Authentification