summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Static.pm
blob: e0d56f27a51c6d6b6e5b0354dc5b9e9191302c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 changelog {
	my ($self) = @_;

	$self->render( 'changelog',
		version => $self->app->config->{version} // 'UNKNOWN' );
}

sub imprint {
	my ($self) = @_;

	$self->render('imprint');
}

1;