Lines 1-4
Link Here
|
1 |
package Koha::REST::V1::Patrons; |
1 |
package Koha::REST::V1::Patron; |
2 |
|
2 |
|
3 |
# This file is part of Koha. |
3 |
# This file is part of Koha. |
4 |
# |
4 |
# |
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::Patrons; |
23 |
use Koha::Patrons; |
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'); |