summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-03 20:43:46 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-03 20:43:46 +0200
commit709919a9624ed4336e9e5ae382e29cd34c795a82 (patch)
tree5562aa8a08048666c162db008db9b69dc554d4c6 /lib
parent9f3b80a859a8e54856dd283b635a4abfe377feb9 (diff)
Experimental PWA support (#13)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm1
-rw-r--r--lib/Travelynx/Controller/Static.pm6
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;