#718 fix Node Search API endpoint

This commit is contained in:
Oliver Gorwits
2020-05-15 11:44:01 +01:00
parent 8acdb67346
commit 42bb6e548b
4 changed files with 2 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
[BUG FIXES]
* #718 fix Node Search API endpoint
* #719 include IO::Socket::INET6 in deps to ensure IPv6 support
2.045002 - 2020-04-19

View File

@@ -1,7 +1,6 @@
package App::Netdisco::Web::GenericReport;
use Dancer ':syntax';
use Dancer::Plugin::Ajax;
use Dancer::Plugin::DBIC;
use Dancer::Plugin::Auth::Extensible;

View File

@@ -1,7 +1,6 @@
package App::Netdisco::Web::Plugin::Search::Node;
use Dancer ':syntax';
use Dancer::Plugin::Ajax;
use Dancer::Plugin::DBIC;
use Dancer::Plugin::Auth::Extensible;
@@ -59,7 +58,7 @@ register_search_tab({
});
# 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');
send_error('Missing node', 400) unless $node;
content_type('text/html');

View File

@@ -1,7 +1,6 @@
package App::Netdisco::Web::Search;
use Dancer ':syntax';
use Dancer::Plugin::Ajax;
use Dancer::Plugin::DBIC;
use Dancer::Plugin::Auth::Extensible;