Lines 22-28
use Mojo::Base 'Mojolicious::Controller';
Link Here
|
22 |
use C4::Auth qw( haspermission ); |
22 |
use C4::Auth qw( haspermission ); |
23 |
use Koha::Borrowers; |
23 |
use Koha::Borrowers; |
24 |
|
24 |
|
25 |
sub list_patrons { |
25 |
sub list { |
26 |
my ($c, $args, $cb) = @_; |
26 |
my ($c, $args, $cb) = @_; |
27 |
|
27 |
|
28 |
my $user = $c->stash('koha.user'); |
28 |
my $user = $c->stash('koha.user'); |
Lines 35-41
sub list_patrons {
Link Here
|
35 |
$c->$cb($patrons->unblessed, 200); |
35 |
$c->$cb($patrons->unblessed, 200); |
36 |
} |
36 |
} |
37 |
|
37 |
|
38 |
sub get_patron { |
38 |
sub get { |
39 |
my ($c, $args, $cb) = @_; |
39 |
my ($c, $args, $cb) = @_; |
40 |
|
40 |
|
41 |
my $user = $c->stash('koha.user'); |
41 |
my $user = $c->stash('koha.user'); |