mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implements REST API endpoint to factory-reset notif. endpoints
Implements #4391
This commit is contained in:
parent
8617c045ef
commit
9875e9b398
1 changed files with 16 additions and 0 deletions
16
scripts/lua/rest/v1/delete/endpoints.lua
Normal file
16
scripts/lua/rest/v1/delete/endpoints.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
--
|
||||
-- (C) 2013-20 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
local rest_utils = require "rest_utils"
|
||||
local notification_configs = require "notification_configs"
|
||||
local recipients = require "recipients"
|
||||
local recipients_instance = recipients:create()
|
||||
|
||||
notification_configs.reset_configs()
|
||||
recipients_instance:cleanup()
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok)
|
||||
Loading…
Add table
Add a link
Reference in a new issue