travelynx/lib/Travelynx/Controller/Static.pm
2019-04-14 17:34:30 -04:00

18 lines
333 B
Perl

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 => $self->app->config->{version} // 'UNKNOWN' );
}
sub imprint {
my ($self) = @_;
$self->render('imprint');
}
1;