sub startup {
my $self = shift;
my $logger = Koha::Logger->get({ interface => 'api' });
$self->log($logger);
$self->hook(
before_dispatch => sub {
my $c = shift;
-