NAME
Mojolicious::Plugin::RoutesAuthDBI::Admin - is a mixed Mojolicious::Controller. It invoking from plugin module and might also using as standard Mojolicious::Controller. From plugin it controll access to routes trought sintax of ->over(...), see Mojolicious::Routes::Route#over
SYNOPSIS
$app->plugin('RoutesAuthDBI',
dbh => $app->dbh,
auth => {...},
access => {...},
admin => {< options below >},
);
namespace - default 'Mojolicious::Plugin::RoutesAuthDBI',
controller - module controller name, default 'Admin',
Both above options determining the module controller for web actions on tables routes, roles, users and refs between them.
prefix -is a prefix for admin urls of this module. Default as name of controller lowcase.
trust is a url subprefix for trust admin urls of this module. See defaults below.
Defaults
admin = > {
namespace => 'Mojolicious::Plugin::RoutesAuthDBI',
module => 'Admin',
prefix => 'admin',
trust => $app->secrets->[0],
},
admin = {}, # empty hashref sets defaults above
admin => undef, # disables routing of admin controller
admin = > {prefix=>'myadmin', trust => 'foooobaaar'},# admin urls like: /myadmin/foooobaaar/.....
head1 METHODS NEEDS IN PLUGIN
self_routes() - builtin this access controller routes. Return array of hashrefs. Depends on conf options prefix and trust.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 10:
=pod directives shouldn't be over one line long! Ignoring all 2 lines of content