summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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 0ded6bb..2cf1f58 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1720,6 +1720,7 @@ sub startup {
$r->get('/')->to('traveling#homepage');
$r->get('/about')->to('static#about');
$r->get('/api')->to('api#documentation');
+ $r->get('/changelog')->to('static#changelog');
$r->get('/impressum')->to('static#imprint');
$r->get('/imprint')->to('static#imprint');
$r->get('/api/v0/:user_action/:token')->to('api#get_v0');
diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm
index 09d7f51..e0d56f2 100644
--- a/lib/Travelynx/Controller/Static.pm
+++ b/lib/Travelynx/Controller/Static.pm
@@ -10,6 +10,13 @@ sub about {
version => $self->app->config->{version} // 'UNKNOWN' );
}
+sub changelog {
+ my ($self) = @_;
+
+ $self->render( 'changelog',
+ version => $self->app->config->{version} // 'UNKNOWN' );
+}
+
sub imprint {
my ($self) = @_;