Bug 19196: Make plugin available to endpoints

This patch just initializes the plugin on the main controller class so
it is available for all endpoints to use.

As it is not used, in order to test just restart plack and make sure the
endpoints work (run the t/db_dependent/api/v1 tests).

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Lari Taskula <lari.taskula@jns.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Tomas Cohen Arazi 2017-08-29 17:02:13 -03:00 committed by Jonathan Druart
parent 26f3ca8d88
commit c84cab61b7
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ sub startup {
# Paths-, Parameters-, Definitions- & Info-object
# is not allowed by the OpenAPI specification.
});
$self->plugin( 'Koha::REST::Plugin::Pagination' );
}
1;