From 43670858870082aa1f2c6f7c54ea6920dad9e35a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 23 Sep 2022 17:35:02 +0200 Subject: add legend (not referenced yet) --- lib/Travelynx.pm | 1 + lib/Travelynx/Controller/Static.pm | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'lib') 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) = @_; -- cgit v1.2.3