parent
14a6614d6a
commit
5e4479863b
|
@ -63,7 +63,7 @@ def register_tube(mac_address):
|
||||||
@app.route('/register_tube', methods=['POST'])
|
@app.route('/register_tube', methods=['POST'])
|
||||||
def register_tube_route():
|
def register_tube_route():
|
||||||
mac_address = request.form.get('mac_address')
|
mac_address = request.form.get('mac_address')
|
||||||
register_tube(mac_address)
|
register_tube(str(mac_address))
|
||||||
return jsonify({'success': True, 'message': 'Tube registered successfully.'})
|
return jsonify({'success': True, 'message': 'Tube registered successfully.'})
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue