mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
Added substituted wifiboxid to d3dapi/config post response
This commit is contained in:
parent
5ee34873c3
commit
89cec5c989
@ -15,12 +15,10 @@ local wifi = require('network.wlanconfig')
|
||||
local accessManager = require('util.access')
|
||||
local printerAPI = require('rest.api.api_printer')
|
||||
|
||||
|
||||
local M = {
|
||||
isApi = true
|
||||
}
|
||||
|
||||
|
||||
-- TODO: this function is also defined in 2 other places, combine them (and avoid require loops)
|
||||
local function operationsAccessOrFail(request, response)
|
||||
if not accessManager.hasControl(request.remoteAddress) then
|
||||
@ -84,6 +82,9 @@ function M._global_POST(request, response)
|
||||
|
||||
local substitutedSsid = wifi.getSubstitutedSsid(settings.get('network.ap.ssid'))
|
||||
response:addData("substituted_ssid",substitutedSsid)
|
||||
|
||||
local substitutedWiFiBoxID = wifi.getSubstitutedSsid(settings.get('network.cl.wifiboxid'))
|
||||
response:addData("substituted_wifiboxid",substitutedWiFiBoxID)
|
||||
end
|
||||
|
||||
function M.all_GET(request, response)
|
||||
|
Loading…
Reference in New Issue
Block a user