| 1 | package Mojolicious::Plugin::Fondation::Setup; | ||
| 2 | 1 | $Mojolicious::Plugin::Fondation::Setup::VERSION = '0.11'; | |
| 3 | # ABSTRACT: Setup wizard with session-based state (clean rebuild) | ||
| 4 | |||
| 5 | 1 | ▶ | use Mojo::Base 'Mojolicious::Plugin', -signatures; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | sub fondation_meta { |
|
Subroutine
fondation_meta: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 8 | return { | ||
| 9 | 1 | dependencies => [ | |
| 10 | 'Fondation::Layout::Bootstrap', | ||
| 11 | 'Fondation::SessionStore', | ||
| 12 | ], | ||
| 13 | }; | ||
| 14 | } | ||
| 15 | |||
| 16 | 0 | ▶ | sub register ($self, $app, $conf) { |
|
Subroutine
register: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 17 | |||
| 18 | 0 | my $r = $app->routes; | |
| 19 | |||
| 20 | 0 | $r->get('/setup')->to('Setup#wizard')->name('setup_wizard'); | |
| 21 | 0 | $r->get('/setup/plugins')->to('Setup#plugins')->name('setup_plugins'); | |
| 22 | 0 | $r->get('/setup/discover')->to('Setup#discover')->name('setup_discover'); | |
| 23 | 0 | $r->post('/setup/start')->to('Setup#start')->name('setup_start'); | |
| 24 | 0 | $r->post('/setup/execute')->to('Setup#execute')->name('setup_execute'); | |
| 25 | 0 | $r->get('/setup/reset')->to('Setup#reset')->name('setup_reset'); | |
| 26 | |||
| 27 | 0 | return $self; | |
| 28 | } | ||
| 29 | |||
| 30 | 1 | 1; | |
| 31 | |||
| 32 | __END__ | ||