summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl12
-rw-r--r--templates/main.html.ep2
2 files changed, 14 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index f9f2619..de7f708 100644
--- a/index.pl
+++ b/index.pl
@@ -639,6 +639,18 @@ get '/_redirect' => sub {
return;
};
+get '/_privacy' => sub {
+ my $self = shift;
+
+ $self->render('privacy');
+};
+
+get '/_imprint' => sub {
+ my $self = shift;
+
+ $self->render('imprint');
+};
+
get '/' => \&handle_request;
get '/:city/(*stop).html' => \&render_html;
get '/:city/(*stop).json' => \&render_json;
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 1dcf216..fd2db1e 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -211,6 +211,8 @@ v<%= $Travel::Status::DE::ASEAG::VERSION %><br/>
v<%= $Travel::Status::DE::HAFAS::VERSION %><br/>
<a href="http://finalrewind.org/projects/Travel-Status-DE-VRR/">Travel::Status::DE::EFA</a>
v<%= $Travel::Status::DE::EFA::VERSION %><br/>
+<a href="/_imprint">Imprint</a><br/>
+<a href="/_privacy">Privacy</a><br/>
</div>
</div> <!-- container -->