diff --git a/lib/PostText.pm b/lib/PostText.pm index d457498..ab9d6eb 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -140,13 +140,13 @@ sub startup($self) { $c->session(expires => 1); $c->redirect_to('threads_list'); - }); + })->name('new_session'); # Hide a version string to check build later if (my $version = $self->config->{'version'}) { $r->get('/version', sub ($c) { $c->render(text => $version) - }); + })->name('version_string'); } # Static pages diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index ccfa565..8dcbbe6 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -93,6 +93,9 @@ <%= content =%>