- or download this
post '/adduser' => sub {
create_user username=>param{'Username'};
user_password username => param{'Username'}, password => param{'Pa
+ssword'};
};
- or download this
get '/admin' => require_role admin => sub
{
return 'You found the admin page!';
};
- or download this
Provider# ls
Base.pm Config.pm Database.pm Example.pm Unix.pm
...
Unix.pm:sub authenticate_user {
Unix.pm:sub get_user_details {
Unix.pm:sub get_user_roles {