()
| 100 | @api.route("/settings/network", methods=["GET"]) |
| 101 | #@restricted_access |
| 102 | def getNetworkSettings(): |
| 103 | nm = networkManager() |
| 104 | |
| 105 | return jsonify({ |
| 106 | 'networks': nm.getActiveConnections(), |
| 107 | 'networkDeviceInfo': nm.networkDeviceInfo, |
| 108 | 'hasWifi': nm.hasWifi(), |
| 109 | 'storedWifiNetworks': nm.storedWifiNetworks() |
| 110 | }) |
| 111 | |
| 112 | @api.route("/settings/network/stored-wifi/<string:networkId>", methods=["DELETE"]) |
| 113 | @restricted_access |
nothing calls this directly
no test coverage detected