diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-05-03 20:43:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-05-03 20:43:46 +0200 |
commit | 709919a9624ed4336e9e5ae382e29cd34c795a82 (patch) | |
tree | 5562aa8a08048666c162db008db9b69dc554d4c6 /lib | |
parent | 9f3b80a859a8e54856dd283b635a4abfe377feb9 (diff) |
Experimental PWA support (#13)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 1 | ||||
-rw-r--r-- | lib/Travelynx/Controller/Static.pm | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 7829d2a..48fb22b 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1723,6 +1723,7 @@ sub startup { $r->get('/changelog')->to('static#changelog'); $r->get('/impressum')->to('static#imprint'); $r->get('/imprint')->to('static#imprint'); + $r->get('/offline')->to('static#offline'); $r->get('/api/v0/:user_action/:token')->to('api#get_v0'); $r->get('/api/v1/:user_action/:token')->to('api#get_v1'); $r->get('/login')->to('account#login_form'); diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm index e0d56f2..2c35f1b 100644 --- a/lib/Travelynx/Controller/Static.pm +++ b/lib/Travelynx/Controller/Static.pm @@ -23,4 +23,10 @@ sub imprint { $self->render('imprint'); } +sub offline { + my ($self) = @_; + + $self->render('offline'); +} + 1; |