mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
parent
602f7c66ee
commit
78d2571e0f
4 changed files with 96 additions and 0 deletions
24
scripts/lua/rest/v1/add/interface/pool.lua
Normal file
24
scripts/lua/rest/v1/add/interface/pool.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
--
|
||||
-- (C) 2013-20 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
local json = require "dkjson"
|
||||
local rest_utils = require "rest_utils"
|
||||
|
||||
--
|
||||
-- Add a new pool
|
||||
--
|
||||
|
||||
sendHTTPHeader('application/json')
|
||||
|
||||
local rc = rest_utils.consts_ok
|
||||
local res = {
|
||||
pool_id = "abcdeficgejx01234" -- stub
|
||||
}
|
||||
|
||||
print(rest_utils.rc(rc, res))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue