Create /reset route to start a new session

This commit is contained in:
swagg boi 2022-01-05 21:44:58 -05:00
parent 010750b86e
commit 0167bb0a51

View file

@ -101,6 +101,14 @@ get '/ula6', sub {
$c->render(ula6 => $ula6); $c->render(ula6 => $ula6);
}; };
# Reset session cookie
get '/reset', sub {
my ($c) = @_;
$c->session(expires => 1);
$c->redirect_to('index');
};
# Default route # Default route
get '/:route', [route => [qw{die me news portal}]], sub { get '/:route', [route => [qw{die me news portal}]], sub {
my ($c) = @_; my ($c) = @_;