parent
8af8f55135
commit
8c0dab43a0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue