summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-05 08:33:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-05 08:33:53 +0200
commitc8383c697ac9108b195696a5ca371e79d224225f (patch)
tree1e799fa158ba07ea264785f19635708855ac557c /lib/DBInfoscreen.pm
parent8bf1dd3575bf58f1a50b28747f12f65a26b5a281 (diff)
parent37c510b2d351ea0c1c50ecceec21452de89afebf (diff)
Merge branch 'master' of git.finalrewind.org:var/git_root/db-fakedisplay into master3.1.3
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r--lib/DBInfoscreen.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index 1828737..e7bdf80 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -142,8 +142,9 @@ sub startup {
$self->helper(
'handle_no_results_json' => sub {
- my ( $self, $backend, $station, $errstr, $api_version, $callback )
- = @_;
+ my ( $self, $backend, $station, $errstr, $api_version ) = @_;
+
+ my $callback = $self->param('callback');
$self->res->headers->access_control_allow_origin(q{*});
my $json;
@@ -315,7 +316,9 @@ sub startup {
$r->get('/_wr/:train/:departure')->to('wagenreihung#wagenreihung');
+ $r->get('/_ajax_mapinfo/:tripid/:lineno')->to('map#ajax_route');
$r->get('/map/:tripid/:lineno')->to('map#route');
+ $r->get('/intersection/:trips')->to('map#intersection');
$self->defaults( layout => 'app' );