Added footer with current git version shown

This commit is contained in:
Tom Bloor 2017-09-29 16:21:24 +01:00
parent e667947c65
commit 13b594e64f
3 changed files with 9 additions and 0 deletions

View file

@ -21,12 +21,15 @@ has schema => sub {
sub startup {
my $self = shift;
my $version = `git describe --tags`;
$self->plugin('Config', {
default => {
storage_path => tempdir,
sessionTimeSeconds => 60 * 60 * 24 * 7,
sessionTokenJsonName => 'session_key',
sessionExpiresJsonName => 'sessionExpires',
version => $version,
},
});
my $config = $self->config;