mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
22 lines
498 B
Lua
22 lines
498 B
Lua
--
|
|
-- (C) 2020 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
require "lua_utils"
|
|
|
|
local plugins_utils = require("plugins_utils")
|
|
local notification_recipients = require("notification_recipients")
|
|
local json = require "dkjson"
|
|
|
|
sendHTTPContentTypeHeader('application/json')
|
|
|
|
if not haveAdminPrivileges(true) then
|
|
return
|
|
end
|
|
|
|
local recipients = notification_recipients.get_recipients()
|
|
|
|
print(json.encode(recipients))
|