package NGCP::Panel::Controller::API::BannedUsers; use Sipwise::Base; use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::BannedUsers/; use NGCP::Panel::Utils::Peering; use HTTP::Status qw(:constants); use NGCP::Panel::Utils::Security; __PACKAGE__->set_config(); sub allowed_methods { return [qw/GET OPTIONS HEAD/]; } sub api_description { return 'Defines banned users.'; } sub get_list{ my ($self, $c) = @_; return NGCP::Panel::Utils::Security::list_banned_users($c, data_for_json => 1); } 1; # vim: set tabstop=4 expandtab: