diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-29 12:01:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-29 12:02:49 +0200 |
commit | 160651f0bb465074b3b6ff1a0faa613da5586fb1 (patch) | |
tree | 75ebe8044c4d1b218c1d2ca59f87f0a8774c2d74 /lib | |
parent | 5b4bead3e3d03b06d3ab05d17100903bf716b578 (diff) |
add train search (beta, not linked yet)3.11.1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DBInfoscreen.pm | 6 | ||||
-rw-r--r-- | lib/DBInfoscreen/Controller/Static.pm | 18 |
2 files changed, 19 insertions, 5 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 70b4b5e..7a0bea4 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -369,7 +369,11 @@ sub startup { $r->get('/_redirect')->to('static#redirect'); - $r->get('/_auto')->to('static#geolocation'); + # legacy entry point + $r->get('/_auto')->to('static#geostop'); + + $r->get('/_autostop')->to('static#geostop'); + $r->get('/_autotrain')->to('static#geotrain'); $r->get('/_datenschutz')->to('static#privacy'); diff --git a/lib/DBInfoscreen/Controller/Static.pm b/lib/DBInfoscreen/Controller/Static.pm index c25c6c5..16eeb9a 100644 --- a/lib/DBInfoscreen/Controller/Static.pm +++ b/lib/DBInfoscreen/Controller/Static.pm @@ -39,13 +39,23 @@ sub redirect { } } -sub geolocation { +sub geostop { my ($self) = @_; $self->render( - 'geolocation', - with_geolocation => 1, - hide_opts => 1 + 'geostop', + with_geostop => 1, + hide_opts => 1 + ); +} + +sub geotrain { + my ($self) = @_; + + $self->render( + 'geotrain', + with_geotrain => 1, + hide_opts => 1 ); } |