Added extra redirects and basic pages for getting between admin and user
side
This commit is contained in:
parent
30c80679be
commit
58ab852f4c
4 changed files with 75 additions and 2 deletions
|
@ -3,6 +3,10 @@ use Mojo::Base 'Mojolicious::Controller';
|
|||
|
||||
sub index {
|
||||
my $c = shift;
|
||||
|
||||
if ( $c->is_user_authenticated ) {
|
||||
$c->redirect_to('/home');
|
||||
}
|
||||
}
|
||||
|
||||
sub under {
|
||||
|
@ -34,7 +38,6 @@ sub auth_logout {
|
|||
|
||||
sub home {
|
||||
my $c = shift;
|
||||
$c->render(text => 'Root Home');
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Reference in a new issue