Split configsets in multiple sections, based on the subdir

This commit is contained in:
emanuele-f 2019-12-19 17:35:56 +01:00
parent 61ddcd9730
commit 17f86d162b
5 changed files with 76 additions and 109 deletions

View file

@ -9,9 +9,11 @@ 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()
local config_sets = user_scripts.getConfigsets(subdir)
local rv = {}
-- Only return the essential information