summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Static.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Controller/Static.pm')
-rw-r--r--lib/Travelynx/Controller/Static.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Static.pm b/lib/Travelynx/Controller/Static.pm
new file mode 100644
index 0000000..aa3428e
--- /dev/null
+++ b/lib/Travelynx/Controller/Static.pm
@@ -0,0 +1,18 @@
+package Travelynx::Controller::Static;
+use Mojo::Base 'Mojolicious::Controller';
+
+my $travelynx_version = qx{git describe --dirty} || 'experimental';
+
+sub about {
+ my ($self) = @_;
+
+ $self->render( 'about', version => $travelynx_version );
+}
+
+sub imprint {
+ my ($self) = @_;
+
+ $self->render('imprint');
+}
+
+1;