Handle request for network data
()
| 14435 | |
| 14436 | @app.route('/api/ethernet/scan-enabled', methods=['GET']) |
| 14437 | def get_ethernet_scan_enabled(): |
| 14438 | """Get Ethernet scanning enabled status.""" |
| 14439 | try: |
| 14440 | state = _get_multi_interface_state() |
| 14441 | state.refresh_ethernet_interfaces() |
| 14442 | status = state.get_ethernet_status() |
| 14443 | return jsonify({ |
| 14444 | 'success': True, |
| 14445 | 'scan_enabled': status.get('scan_enabled', True), |
| 14446 | 'active': status.get('active', False), |
| 14447 | 'can_toggle': status.get('can_toggle_scan', False), |
| 14448 | 'active_interface': status.get('active_interface'), |
nothing calls this directly
no test coverage detected