| 1 | package Mojolicious::Plugin::Fondation::User; | ||
| 2 | 1 | $Mojolicious::Plugin::Fondation::User::VERSION = '0.04'; | |
| 3 | # ABSTRACT: User management plugin for Fondation | ||
| 4 | |||
| 5 | 1 | ▶ | use Mojo::Base 'Mojolicious::Plugin', -signatures; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Mojo::JSON qw(true); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | sub fondation_meta { |
|
Subroutine
fondation_meta: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 9 | return { | ||
| 10 | 1 | dependencies => [ | |
| 11 | 'Fondation::Model::DBIx::Async', | ||
| 12 | 'Fondation::MigrationDBIx', | ||
| 13 | ], | ||
| 14 | defaults => { | ||
| 15 | title => 'User Management', | ||
| 16 | models => { | ||
| 17 | user => { | ||
| 18 | source => 'User', | ||
| 19 | backend => undef, # must be set in app config | ||
| 20 | }, | ||
| 21 | }, | ||
| 22 | }, | ||
| 23 | }; | ||
| 24 | } | ||
| 25 | |||
| 26 | 1 | ▶ | sub register ($self, $app, $conf) { |
|
Subroutine
register: called CC=1 SCAR=0.0
Pod
documented
| |||
| 27 | # API routes generated by Fondation::OpenAPI. | ||
| 28 | # HTML routes provided by Fondation::User::UI. | ||
| 29 | |||
| 30 | 1 | return $self; | |
| 31 | } | ||
| 32 | |||
| 33 | 1 | 1; | |
| 34 | |||
| 35 | __END__ | ||