diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-04 22:15:52 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-04 22:15:52 +0200 | 
| commit | e49274d8f8194d8a2817ecc8a0c8557fe3c9b7a9 (patch) | |
| tree | 65faca90c410688e29df9dd9a1ad52515bdd00e6 /lib/DBInfoscreen.pm | |
| parent | cc7366640fbc4f2c1c8df9c2c04445dd87bf724d (diff) | |
Add DBRIS maps (for travelynx)
Diffstat (limited to 'lib/DBInfoscreen.pm')
| -rw-r--r-- | lib/DBInfoscreen.pm | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 7169efe..b0bac14 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -7,6 +7,7 @@ package DBInfoscreen;  use Mojo::Base 'Mojolicious';  use Cache::File; +use DBInfoscreen::Helper::DBRIS;  use DBInfoscreen::Helper::EFA;  use DBInfoscreen::Helper::HAFAS;  use DBInfoscreen::Helper::Wagonorder; @@ -92,6 +93,20 @@ sub startup {  	);  	$self->helper( +		dbris => sub { +			my ($self) = @_; +			state $efa = DBInfoscreen::Helper::DBRIS->new( +				log            => $self->app->log, +				main_cache     => $self->app->cache_iris_main, +				realtime_cache => $self->app->cache_iris_rt, +				root_url       => $self->url_for('/')->to_abs, +				user_agent     => $self->ua, +				version        => $self->config->{version}, +			); +		} +	); + +	$self->helper(  		efa => sub {  			my ($self) = @_;  			state $efa = DBInfoscreen::Helper::EFA->new( | 
