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

Function getWifiNetworks

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

Source from the content-addressed store, hash-verified

90@api.route("/settings/network/wifi-networks", methods=["GET"])
91#@restricted_access
92def getWifiNetworks():
93 networks = networkManager().getWifiNetworks()
94
95 if networks:
96 return jsonify(networks = networks)
97 else:
98 return jsonify({'message': "Unable to get WiFi networks"})
99
100@api.route("/settings/network", methods=["GET"])
101#@restricted_access

Callers

nothing calls this directly

Calls 2

networkManagerFunction · 0.90
getWifiNetworksMethod · 0.45

Tested by

no test coverage detected