Loading lib/DBInfoscreen.pm +1 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ sub startup { ); chomp $self->config->{version}; $self->defaults( version => $self->config->{version} // 'UNKNOWN' ); # Generally, the reverse proxy handles compression. # Also, Mojolicious compression breaks legacy callback-based JSON endpoints Loading lib/DBInfoscreen/Controller/Static.pm +0 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,6 @@ sub about { $self->render( 'about', hide_opts => 1, version => $self->config->{version} ); } Loading lib/DBInfoscreen/Controller/Stationboard.pm +0 −5 Original line number Diff line number Diff line Loading @@ -131,7 +131,6 @@ sub handle_no_results_json { if ($errstr) { $json = { api_version => $api_version, version => $self->config->{version}, error => $errstr, }; } Loading @@ -143,7 +142,6 @@ sub handle_no_results_json { { $json = { api_version => $api_version, version => $self->config->{version}, error => 'ambiguous station code/name', candidates => \@candidates, }; Loading @@ -151,7 +149,6 @@ sub handle_no_results_json { else { $json = { api_version => $api_version, version => $self->config->{version}, error => ( $errstr // "Got no results for '$station'" ) }; } Loading Loading @@ -403,7 +400,6 @@ sub handle_request { $self->stash( departures => [] ); $self->stash( title => 'DBF' ); $self->stash( version => $self->config->{version} ); if ( not( $template ~~ [qw[app infoscreen json multi single text]] ) ) { $template = 'app'; Loading Loading @@ -1110,7 +1106,6 @@ sub train_details { $self->stash( departures => [] ); $self->stash( title => 'DBF' ); $self->stash( version => $self->config->{version} ); my $res = { train_type => undef, Loading Loading
lib/DBInfoscreen.pm +1 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,7 @@ sub startup { ); chomp $self->config->{version}; $self->defaults( version => $self->config->{version} // 'UNKNOWN' ); # Generally, the reverse proxy handles compression. # Also, Mojolicious compression breaks legacy callback-based JSON endpoints Loading
lib/DBInfoscreen/Controller/Static.pm +0 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,6 @@ sub about { $self->render( 'about', hide_opts => 1, version => $self->config->{version} ); } Loading
lib/DBInfoscreen/Controller/Stationboard.pm +0 −5 Original line number Diff line number Diff line Loading @@ -131,7 +131,6 @@ sub handle_no_results_json { if ($errstr) { $json = { api_version => $api_version, version => $self->config->{version}, error => $errstr, }; } Loading @@ -143,7 +142,6 @@ sub handle_no_results_json { { $json = { api_version => $api_version, version => $self->config->{version}, error => 'ambiguous station code/name', candidates => \@candidates, }; Loading @@ -151,7 +149,6 @@ sub handle_no_results_json { else { $json = { api_version => $api_version, version => $self->config->{version}, error => ( $errstr // "Got no results for '$station'" ) }; } Loading Loading @@ -403,7 +400,6 @@ sub handle_request { $self->stash( departures => [] ); $self->stash( title => 'DBF' ); $self->stash( version => $self->config->{version} ); if ( not( $template ~~ [qw[app infoscreen json multi single text]] ) ) { $template = 'app'; Loading Loading @@ -1110,7 +1106,6 @@ sub train_details { $self->stash( departures => [] ); $self->stash( title => 'DBF' ); $self->stash( version => $self->config->{version} ); my $res = { train_type => undef, Loading