mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
refactor for endpoints and recipients (#4707)
This commit is contained in:
parent
06161556ac
commit
15772bd0fe
24 changed files with 129 additions and 117 deletions
|
|
@ -4,13 +4,14 @@
|
|||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/recipients/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/notifications/?.lua;" .. package.path
|
||||
|
||||
|
||||
local rest_utils = require "rest_utils"
|
||||
local notification_configs = require "notification_configs"
|
||||
local endpoints = require("endpoints")
|
||||
local recipients = require "recipients"
|
||||
|
||||
notification_configs.reset_configs()
|
||||
endpoints.reset_configs()
|
||||
recipients.cleanup()
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue