mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Shortens category_id to cat_id in a rest json response
This commit is contained in:
parent
38067e4ef8
commit
3afb189336
2 changed files with 3 additions and 3 deletions
|
|
@ -23,8 +23,8 @@ local res = {}
|
|||
|
||||
local categories = interface.getnDPICategories()
|
||||
|
||||
for category, category_id in pairs(categories) do
|
||||
res[category] = {category_id = tonumber(category_id)}
|
||||
for category, cat_id in pairs(categories) do
|
||||
res[category] = {cat_id = tonumber(cat_id)}
|
||||
end
|
||||
|
||||
print(rest_utils.rc(rc, res))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue