diff options
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 ); } |