mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add rest/v2/get/host/find.lua API
This commit is contained in:
parent
5a8f1b863a
commit
6174712fc2
5 changed files with 27 additions and 16 deletions
|
|
@ -97,8 +97,8 @@ print [[
|
|||
source: function (query, process) {
|
||||
return $.get(']]
|
||||
print (ntop.getHttpPrefix())
|
||||
print [[/lua/find_host.lua', { query: query }, function (data) {
|
||||
return process(data.results);
|
||||
print [[/lua/rest/v2/get/host/find.lua', { query: query }, function (data) {
|
||||
return process(data.rsp.results);
|
||||
});
|
||||
}, afterSelect: function(item) {
|
||||
$('#hostIPSearch').val(item.ip.split("@")[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue