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

(-)a/Koha/App/Koha.pm (-11 / +2 lines)
Lines 24-41 sub startup { Link Here
24
    $self->hook(before_dispatch => \&_before_dispatch);
24
    $self->hook(before_dispatch => \&_before_dispatch);
25
    $self->hook(around_action => \&_around_action);
25
    $self->hook(around_action => \&_around_action);
26
26
27
    # Everything after this comment is only needed to use Mojolicious
28
    # controllers.
29
    # We can't use them for anything serious right now because of the
30
    # authentication code that needs a full rewrite
31
32
    $self->plugin('TemplateToolkit', template => {PLUGIN_BASE => 'Koha::Template::Plugin'});
33
    $self->renderer->default_handler('tt2');
34
35
    $self->routes->namespaces(['Koha::Controller']);
36
37
    my $r = $self->routes;
27
    my $r = $self->routes;
38
28
29
    $r->namespaces(['Koha::Controller']);
30
39
    $r->any('/')->to(cb => sub { shift->redirect_to('/cgi-bin/koha/opac-main.pl') });
31
    $r->any('/')->to(cb => sub { shift->redirect_to('/cgi-bin/koha/opac-main.pl') });
40
    $r->any('/intranet')->to(cb => sub { shift->redirect_to('/cgi-bin/koha/mainpage.pl') });
32
    $r->any('/intranet')->to(cb => sub { shift->redirect_to('/cgi-bin/koha/mainpage.pl') });
41
}
33
}
42
- 

Return to bug 20582