diff --git a/lib/NGCP/Panel/Controller/API/BannedIps.pm b/lib/NGCP/Panel/Controller/API/BannedIps.pm index cbc6cffdf0..848220b115 100644 --- a/lib/NGCP/Panel/Controller/API/BannedIps.pm +++ b/lib/NGCP/Panel/Controller/API/BannedIps.pm @@ -21,6 +21,15 @@ sub get_list{ my ($self, $c) = @_; return NGCP::Panel::Utils::Security::list_banned_ips($c); } + +sub order_by_cols { + my ($self, $c) = @_; + my $cols = { + 'ip' => 'ip', + 'id' => 'id', + }; + return $cols; +} 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BannedUsers.pm b/lib/NGCP/Panel/Controller/API/BannedUsers.pm index 0e5c77a68d..9e1d09b761 100644 --- a/lib/NGCP/Panel/Controller/API/BannedUsers.pm +++ b/lib/NGCP/Panel/Controller/API/BannedUsers.pm @@ -23,6 +23,17 @@ sub get_list{ my ($self, $c) = @_; return NGCP::Panel::Utils::Security::list_banned_users($c); } + +sub order_by_cols { + my ($self, $c) = @_; + my $cols = { + 'auth_count' => 'auth_count', + 'last_auth' => 'last_auth', + 'id' => 'id', + 'username' => 'username', + }; + return $cols; +} 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm index 6a90e2cf1c..15a974902b 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm @@ -54,6 +54,21 @@ sub query_params { ]; }; +sub order_by_cols { + my ($self, $c) = @_; + my $cols = { + 'contact' => 'contact', + 'expires' => 'expires', + 'id' => 'id', + 'nat' => 'nat', + 'path' => 'path', + 'q' => 'q', + 'subscriber_id' => 'subscriber_id', + 'user_agent' => 'user_agent', + }; + return $cols; +} + use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SubscriberRegistrations/; sub resource_name{