From 21dfad35bfe465e1aa40a3abc780ebef76f68a5b Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 4 Jan 2025 01:07:18 -0500 Subject: [PATCH] made everything static --- static/app.js => app.js | 0 app.py | 20 -------------------- templates/index.html => index.html | 0 static/style.css => style.css | 0 4 files changed, 20 deletions(-) rename static/app.js => app.js (100%) delete mode 100644 app.py rename templates/index.html => index.html (100%) rename static/style.css => style.css (100%) 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