MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getNetworkSettings

Function getNetworkSettings

src/astroprint/api/settings.py:102–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100@api.route("/settings/network", methods=["GET"])
101#@restricted_access
102def 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

Callers

nothing calls this directly

Calls 4

networkManagerFunction · 0.90
getActiveConnectionsMethod · 0.45
hasWifiMethod · 0.45
storedWifiNetworksMethod · 0.45

Tested by

no test coverage detected