Added extra redirects and basic pages for getting between admin and user

side
This commit is contained in:
Tom Bloor 2017-04-08 14:34:22 +01:00
parent 30c80679be
commit 58ab852f4c
4 changed files with 75 additions and 2 deletions

View file

@ -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;