summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-09-23 17:35:02 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-09-23 17:35:02 +0200
commit43670858870082aa1f2c6f7c54ea6920dad9e35a (patch)
treee6573a36d57ccada87d91e13a4489c77c9329af2 /lib
parent6bae226d5caceed3b21cef8cdead45e848afe3f4 (diff)
add legend (not referenced yet)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm1
-rw-r--r--lib/Travelynx/Controller/Static.pm7
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 8e6a465..a85328f 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2286,6 +2286,7 @@ sub startup {
$r->get('/changelog')->to('static#changelog');
$r->get('/impressum')->to('static#imprint');
$r->get('/imprint')->to('static#imprint');
+ $r->get('/legend')->to('static#legend');
$r->get('/offline.html')->to('static#offline');
$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 addcd61..b5ee0b8 100644
--- a/lib/Travelynx/Controller/Static.pm
+++ b/lib/Travelynx/Controller/Static.pm
@@ -1,4 +1,5 @@
package Travelynx::Controller::Static;
+
# Copyright (C) 2020 Daniel Friesel
#
# SPDX-License-Identifier: AGPL-3.0-or-later
@@ -26,6 +27,12 @@ sub imprint {
$self->render('imprint');
}
+sub legend {
+ my ($self) = @_;
+
+ $self->render('legend');
+}
+
sub offline {
my ($self) = @_;