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

(-)a/Koha/REST/V1.pm (-2 / +2 lines)
Lines 55-68 sub startup { Link Here
55
55
56
    $self->plugin(Swagger2 => {
56
    $self->plugin(Swagger2 => {
57
        route => $route,
57
        route => $route,
58
        url => $self->home->rel_file("api/v1/swagger.min.json"),
58
        url => $self->home->rel_file("api/v1/swagger/swagger.min.json"),
59
    });
59
    });
60
}
60
}
61
61
62
sub minifySwagger {
62
sub minifySwagger {
63
    my ($self, $swaggerPath) = @_;
63
    my ($self, $swaggerPath) = @_;
64
64
65
    $swaggerPath = C4::Context->config("intranetdir").'/api/v1/' unless $swaggerPath;
65
    $swaggerPath = C4::Context->config("intranetdir").'/api/v1/swagger/' unless $swaggerPath;
66
    my $pathToMinifier = $swaggerPath.'minifySwagger.pl';
66
    my $pathToMinifier = $swaggerPath.'minifySwagger.pl';
67
    my $pathToSwaggerJson = $swaggerPath.'swagger.json';
67
    my $pathToSwaggerJson = $swaggerPath.'swagger.json';
68
    my $pathToSwaggerMinJson = $swaggerPath.'swagger.min.json';
68
    my $pathToSwaggerMinJson = $swaggerPath.'swagger.min.json';
(-)a/t/api/v1/minifier.t (-2 / +1 lines)
Lines 71-77 qq ({ Link Here
71
});
71
});
72
72
73
# Path containing actual swagger specification files
73
# Path containing actual swagger specification files
74
my $real_swaggerPath = C4::Context->config("intranetdir").'/api/v1/';
74
my $real_swaggerPath = C4::Context->config("intranetdir").'/api/v1/swagger/';
75
75
76
# Create a tmp directory where we can modify swagger.json
76
# Create a tmp directory where we can modify swagger.json
77
my $swaggerPath = File::Temp->newdir()."/";
77
my $swaggerPath = File::Temp->newdir()."/";
78
- 

Return to bug 16699