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

(-)a/Koha/REST/V1.pm (-1 / +5 lines)
Lines 38-43 Overloaded Mojolicious->startup method. It is called at application startup. Link Here
38
sub startup {
38
sub startup {
39
    my $self = shift;
39
    my $self = shift;
40
40
41
    # Remove /api/v1/app.pl/ from the path
42
    $self->hook( before_dispatch => sub {
43
        shift->req->url->base->path('/');
44
    });
45
41
    # Force charset=utf8 in Content-Type header for JSON responses
46
    # Force charset=utf8 in Content-Type header for JSON responses
42
    $self->types->type(json => 'application/json; charset=utf8');
47
    $self->types->type(json => 'application/json; charset=utf8');
43
48
44
- 

Return to bug 20134