diff --git a/server/app.py b/server/app.py index 0ef3081..a2e6c97 100644 --- a/server/app.py +++ b/server/app.py @@ -56,7 +56,8 @@ def register_tube_route(): return jsonify({'success': True, 'message': 'Tube registered successfully.'}) # Function to retrieve registered tubes from the database -def get_tubes(): +@app.route('/get_tube_list', methods=['GET']) +def get_tube_list(): cur = db.cursor() cur.execute("SELECT * FROM tubes") tubes = cur.fetchall()