MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / handle_network_request

Function handle_network_request

webapp_modern.py:14437–14445  ·  view source on GitHub ↗

Handle request for network data

()

Source from the content-addressed store, hash-verified

14435
14436@app.route('/api/ethernet/scan-enabled', methods=['GET'])
14437def 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'),

Callers

nothing calls this directly

Calls 3

get_dbFunction · 0.90
get_all_hostsMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected