diff --git a/server/app.py b/server/app.py index 172f976..0ef3081 100644 --- a/server/app.py +++ b/server/app.py @@ -55,15 +55,6 @@ def register_tube_route(): register_tube(mac_address) return jsonify({'success': True, 'message': 'Tube registered successfully.'}) -# Function to retrieve registered tubes from the database -@app.route('/get_tube_list', methods=['GET']) -def get_tube_list(): - cur = db.cursor() - cur.execute("SELECT * FROM tubes") - tubes = cur.fetchall() - cur.close() - return tubes - # Function to retrieve registered tubes from the database def get_tubes(): cur = db.cursor() diff --git a/server/templates/index.html b/server/templates/index.html index 04cadcd..cc61faf 100644 --- a/server/templates/index.html +++ b/server/templates/index.html @@ -60,69 +60,43 @@