Add API route for printer information
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user