Make configsets global

This commit is contained in:
emanuele-f 2019-12-23 13:25:04 +01:00
parent 71fa8de0a3
commit c665bc78d7
12 changed files with 147 additions and 109 deletions

View file

@ -9,11 +9,9 @@ require "lua_utils"
local json = require("dkjson")
local user_scripts = require("user_scripts")
local subdir = _GET["script_subdir"] or "host"
sendHTTPContentTypeHeader('application/json')
local config_sets = user_scripts.getConfigsets(subdir)
local config_sets = user_scripts.getConfigsets()
local rv = {}
-- Only return the essential information