summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-04-28 07:31:08 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-04-28 07:34:03 +0200
commitaf8e2832a0f03c52f78a7f4d8f9740ec31e661e2 (patch)
treeb484e6ee1ae6bbba93c5348f5a457a423f6ea5bf /index.pl
parent37fa6e58770adda23402e34adeb4561ba71c0968 (diff)
Add links to imprint and privacy policy
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 4092ad4..1cead7c 100644
--- a/index.pl
+++ b/index.pl
@@ -956,6 +956,15 @@ get '/_auto' => sub {
);
};
+get '/_datenschutz' => sub {
+ my $self = shift;
+
+ $self->render(
+ 'privacy',
+ hide_opts => 1
+ );
+};
+
post '/_geolocation' => sub {
my $self = shift;
@@ -985,6 +994,15 @@ post '/_geolocation' => sub {
}
};
+get '/_impressum' => sub {
+ my $self = shift;
+
+ $self->render(
+ 'imprint',
+ hide_opts => 1
+ );
+};
+
app->defaults( layout => 'default' );
app->sessions->default_expiration( 3600 * 24 * 28 );