Added substituted wifiboxid to d3dapi/config post response

This commit is contained in:
peteruithoven 2014-02-28 11:11:16 +01:00
parent 5ee34873c3
commit 89cec5c989
1 changed files with 3 additions and 2 deletions

View File

@ -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)