mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 19:13:49 +01:00
Added missing setSuccess in config/all api
This commit is contained in:
parent
c915906395
commit
4e124b74d5
@ -19,7 +19,6 @@ end
|
|||||||
|
|
||||||
function M._global_POST(request, response)
|
function M._global_POST(request, response)
|
||||||
response:setSuccess()
|
response:setSuccess()
|
||||||
|
|
||||||
for k,v in pairs(request:getAll()) do
|
for k,v in pairs(request:getAll()) do
|
||||||
local r,m = settings.set(k, v)
|
local r,m = settings.set(k, v)
|
||||||
|
|
||||||
@ -30,6 +29,7 @@ function M._global_POST(request, response)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function M.all_GET(request, response)
|
function M.all_GET(request, response)
|
||||||
|
response:setSuccess()
|
||||||
for k,v in pairs(settings.getAll()) do
|
for k,v in pairs(settings.getAll()) do
|
||||||
response:addData(k,v)
|
response:addData(k,v)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user