diff --git a/static/app.js b/app.js similarity index 100% rename from static/app.js rename to app.js diff --git a/app.py b/app.py deleted file mode 100644 index bd6b2f2..0000000 --- a/app.py +++ /dev/null @@ -1,20 +0,0 @@ -from flask import Flask, jsonify, render_template -from monitor.node import check_network_health, measure_latency, check_bandwidth - -app = Flask(__name__) - -@app.route('/') -def index(): - return render_template('index.html') - -@app.route('/api/metrics') -def get_metrics(): - metrics = { - 'network_health': check_network_health(), - 'latency': measure_latency(), - 'bandwidth': check_bandwidth() - } - return jsonify(metrics) - -if __name__ == '__main__': - app.run(debug=True) diff --git a/templates/index.html b/index.html similarity index 100% rename from templates/index.html rename to index.html diff --git a/static/style.css b/style.css similarity index 100% rename from static/style.css rename to style.css