Create /reset route to start a new session
This commit is contained in:
parent
010750b86e
commit
0167bb0a51
|
@ -101,6 +101,14 @@ get '/ula6', sub {
|
|||
$c->render(ula6 => $ula6);
|
||||
};
|
||||
|
||||
# Reset session cookie
|
||||
get '/reset', sub {
|
||||
my ($c) = @_;
|
||||
|
||||
$c->session(expires => 1);
|
||||
$c->redirect_to('index');
|
||||
};
|
||||
|
||||
# Default route
|
||||
get '/:route', [route => [qw{die me news portal}]], sub {
|
||||
my ($c) = @_;
|
||||
|
|
Loading…
Reference in a new issue