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'; |