mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
parent
5bc4e4c35a
commit
574e941947
9 changed files with 445 additions and 15 deletions
|
|
@ -0,0 +1,24 @@
|
|||
--
|
||||
-- (C) 2013-23 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/system_config/?.lua;" .. package.path
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local backup_config = require("backup_config")
|
||||
local rest_utils = require("rest_utils")
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local rc = rest_utils.consts.success.ok
|
||||
|
||||
local epoch_list = backup_config.list_backup()
|
||||
|
||||
if epoch_list then
|
||||
rest_utils.answer(rc, epoch_list)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
Loading…
Add table
Add a link
Reference in a new issue