#718 fix Node Search API endpoint
This commit is contained in:
1
Changes
1
Changes
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* #718 fix Node Search API endpoint
|
||||||
* #719 include IO::Socket::INET6 in deps to ensure IPv6 support
|
* #719 include IO::Socket::INET6 in deps to ensure IPv6 support
|
||||||
|
|
||||||
2.045002 - 2020-04-19
|
2.045002 - 2020-04-19
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package App::Netdisco::Web::GenericReport;
|
package App::Netdisco::Web::GenericReport;
|
||||||
|
|
||||||
use Dancer ':syntax';
|
use Dancer ':syntax';
|
||||||
use Dancer::Plugin::Ajax;
|
|
||||||
use Dancer::Plugin::DBIC;
|
use Dancer::Plugin::DBIC;
|
||||||
use Dancer::Plugin::Auth::Extensible;
|
use Dancer::Plugin::Auth::Extensible;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package App::Netdisco::Web::Plugin::Search::Node;
|
package App::Netdisco::Web::Plugin::Search::Node;
|
||||||
|
|
||||||
use Dancer ':syntax';
|
use Dancer ':syntax';
|
||||||
use Dancer::Plugin::Ajax;
|
|
||||||
use Dancer::Plugin::DBIC;
|
use Dancer::Plugin::DBIC;
|
||||||
use Dancer::Plugin::Auth::Extensible;
|
use Dancer::Plugin::Auth::Extensible;
|
||||||
|
|
||||||
@@ -59,7 +58,7 @@ register_search_tab({
|
|||||||
});
|
});
|
||||||
|
|
||||||
# nodes matching the param as an IP or DNS hostname or MAC
|
# nodes matching the param as an IP or DNS hostname or MAC
|
||||||
ajax '/ajax/content/search/node' => require_login sub {
|
get '/ajax/content/search/node' => require_login sub {
|
||||||
my $node = param('q');
|
my $node = param('q');
|
||||||
send_error('Missing node', 400) unless $node;
|
send_error('Missing node', 400) unless $node;
|
||||||
content_type('text/html');
|
content_type('text/html');
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package App::Netdisco::Web::Search;
|
package App::Netdisco::Web::Search;
|
||||||
|
|
||||||
use Dancer ':syntax';
|
use Dancer ':syntax';
|
||||||
use Dancer::Plugin::Ajax;
|
|
||||||
use Dancer::Plugin::DBIC;
|
use Dancer::Plugin::DBIC;
|
||||||
use Dancer::Plugin::Auth::Extensible;
|
use Dancer::Plugin::Auth::Extensible;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user