| 1 | package Mojolicious::Plugin::Fondation::Perm::UI::Bootstrap; | ||
| 2 | 1 | $Mojolicious::Plugin::Fondation::Perm::UI::Bootstrap::VERSION = '0.02'; | |
| 3 | # ABSTRACT: Web UI extension for Fondation::Perm — injects perm checkboxes into group forms | ||
| 4 | |||
| 5 | 1 | ▶ | use Mojo::Base 'Mojolicious::Plugin', -signatures; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | |||
| 8 | 0 | ▶ | sub fondation_meta { |
|
Subroutine
fondation_meta: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 9 | return { | ||
| 10 | 0 | dependencies => ['Fondation::Perm', 'Fondation::Layout::Bootstrap'], | |
| 11 | defaults => { | ||
| 12 | title => 'Permission Management UI', | ||
| 13 | }, | ||
| 14 | }; | ||
| 15 | } | ||
| 16 | |||
| 17 | 0 | ▶ | sub register ($self, $app, $conf) { |
|
Subroutine
register: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 18 | |||
| 19 | 0 | $app->routes->get('/perms') | |
| 20 | ->requires('fondation.perm' => 'perm_list') | ||
| 21 | ->to( | ||
| 22 | controller => 'Perm', | ||
| 23 | action => 'index' | ||
| 24 | ); | ||
| 25 | |||
| 26 | 0 | return $self; | |
| 27 | } | ||
| 28 | |||
| 29 | 1 | 1; | |
| 30 | |||
| 31 | __END__ | ||