mirror of
https://github.com/derf/travelynx
synced 2024-12-02 09:19:11 +00:00
40 lines
605 B
Perl
40 lines
605 B
Perl
package Travelynx::Controller::Static;
|
|
|
|
# Copyright (C) 2020-2023 Daniel Friesel
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
use Mojo::Base 'Mojolicious::Controller';
|
|
|
|
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');
|
|
}
|
|
|
|
sub legend {
|
|
my ($self) = @_;
|
|
|
|
$self->render('legend');
|
|
}
|
|
|
|
sub offline {
|
|
my ($self) = @_;
|
|
|
|
$self->render('offline');
|
|
}
|
|
|
|
1;
|