Initial work for widget implementation

This commit is contained in:
Luca Deri 2020-04-13 14:24:50 +02:00
parent 427a0e6667
commit f7b1e7d689
29 changed files with 1353 additions and 36 deletions

View file

@ -0,0 +1,16 @@
--
-- (C) 2020 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local widget_utils = require("widget_utils")
local json = require "dkjson"
sendHTTPContentTypeHeader('application/json')
local widgets = widget_utils.get_all_widgets()
print(json.encode(widgets))