Modified logic for /network_config to return currently associated BSSID instead of pulling from UCI. Added /SOS GET endpoint for easily directing the unit to connect to any campground wireless AP in a pinch.
This commit is contained in:
@@ -50,6 +50,7 @@ local success, load_result = pcall(function()
|
||||
|
||||
router:add_route("GET", "/network_config", network_handlers.get_network_config)
|
||||
router:add_route("POST", "/connect_wifi", network_handlers.set_connect_wifi)
|
||||
router:add_route("GET", "/SOS", network_handlers.set_connect_wifi_sos)
|
||||
router:add_route("GET", "/wifi_scan", wifi_handlers.get_wifi_scan)
|
||||
router:add_route("GET", "/system_log_parsed", system_handlers.get_system_log_parsed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user