From 29dd0d862c70c59af7b2a41fd5fa8c9de6afd2b4 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Tue, 11 Feb 2025 17:00:10 -0500 Subject: [PATCH] Add link to the new_session route; add name for version_string route --- lib/PostText.pm | 4 ++-- templates/layouts/default.html.ep | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 =%>