View | Details | Raw Unified | Return to bug 23653
Collapse All | Expand All

(-)a/Koha/REST/Plugin/PluginRoutes.pm (-5 / +1 lines)
Lines 47-56 sub register { Link Here
47
47
48
    if ( C4::Context->config("enable_plugins") )
48
    if ( C4::Context->config("enable_plugins") )
49
    {
49
    {
50
        my $schema = $app->home->rel_file("api/swagger-v2-schema.json");
50
        $self->{'swagger-v2-schema'} = $app->home->rel_file("api/swagger-v2-schema.json");
51
        if ($schema){
52
           $self->{'swagger-v2-schema'} = $schema;
53
        }
54
51
55
        # plugin needs to define a namespace
52
        # plugin needs to define a namespace
56
        @plugins = Koha::Plugins->new()->GetPlugins(
53
        @plugins = Koha::Plugins->new()->GetPlugins(
57
- 

Return to bug 23653