mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-06-26 03:21:22 +02: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)
|
||||
response:setSuccess()
|
||||
|
||||
for k,v in pairs(request:getAll()) do
|
||||
local r,m = settings.set(k, v)
|
||||
|
||||
|
@ -30,6 +29,7 @@ function M._global_POST(request, response)
|
|||
end
|
||||
|
||||
function M.all_GET(request, response)
|
||||
response:setSuccess()
|
||||
for k,v in pairs(settings.getAll()) do
|
||||
response:addData(k,v)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user