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

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

Return to bug 16699