feat: Add index status to webserver

This commit is contained in:
2025-02-05 23:27:10 +11:00
parent 879f20f1e7
commit 42f4a59797

View File

@@ -300,7 +300,10 @@ app = Flask(__name__)
@app.route("/")
def ping():
return jsonify({"status": "OK"})
return jsonify({"status": "OK",
"height": getNodeHeight(),
"indexed": getNewestBlock()
})
def run_server():
app.run(host='0.0.0.0', port=3000)