Initial user admin page

This commit is contained in:
Tom Bloor 2017-04-18 10:44:07 +01:00
parent 36e8cfe1d0
commit 1466ea84eb
3 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,33 @@
package Pear::LocalLoop::Controller::Admin::Users;
use Mojo::Base 'Mojolicious::Controller';
has result_set => sub {
my $c = shift;
return $c->schema->resultset('User');
};
sub index {
my $c = shift;
my $user_rs = $c->result_set;
$user_rs->result_class('DBIx::Class::ResultClass::HashRefInflator');
$c->stash( users => [ $user_rs->all ] );
}
sub create {
my $c = shift;
}
sub read {
my $c = shift;
}
sub update {
my $c = shift;
}
sub delete {
my $c = shift;
}
1;