mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Implements widgets with multiple datasources (fetch + rest)
This commit is contained in:
parent
caee14071c
commit
d902000d67
7 changed files with 126 additions and 25 deletions
11
scripts/lua/rest/v1/get/widget/data.lua
Normal file
11
scripts/lua/rest/v1/get/widget/data.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--
|
||||
-- (C) 2013-21 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/datasources/?.lua;" .. package.path
|
||||
|
||||
local widgets_utils = require "widgets_utils"
|
||||
|
||||
widgets_utils.rest_response()
|
||||
Loading…
Add table
Add a link
Reference in a new issue