mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Reworked application management page
This commit is contained in:
parent
88e2b8b101
commit
a8da92b578
11 changed files with 590 additions and 645 deletions
25
scripts/lua/rest/v2/delete/application/application.lua
Normal file
25
scripts/lua/rest/v2/delete/application/application.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
--
|
||||
-- (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/pools/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
local protos_utils = require("protos_utils")
|
||||
local rest_utils = require("rest_utils")
|
||||
|
||||
-- ##################################################
|
||||
|
||||
local rc = rest_utils.consts.success.ok
|
||||
local res = {}
|
||||
|
||||
local l7_proto = _GET["protocol_alias"]
|
||||
local has_protos_file = protos_utils.hasProtosFile()
|
||||
|
||||
if has_protos_file then
|
||||
protos_utils.deleteAppRules(l7_proto)
|
||||
end
|
||||
|
||||
rest_utils.answer(rc, res)
|
||||
Loading…
Add table
Add a link
Reference in a new issue