1Mojolicious::Plugin::MiUnsieorn:C:oAndtmriinb(u3t)ed PerMlojDoolciucmieonutsa:t:iPolnugin::Minion::Admin(3)
2
3
4

NAME

6       Mojolicious::Plugin::Minion::Admin - Admin UI
7

SYNOPSIS

9         # Mojolicious
10         $self->plugin('Minion::Admin');
11
12         # Mojolicious::Lite
13         plugin 'Minion::Admin';
14
15         # Secure access to the admin ui with Basic authentication
16         my $under = $self->routes->under('/minion' =>sub {
17           my $c = shift;
18           return 1 if $c->req->url->to_abs->userinfo eq 'Bender:rocks';
19           $c->res->headers->www_authenticate('Basic');
20           $c->render(text => 'Authentication required!', status => 401);
21           return undef;
22         });
23         $self->plugin('Minion::Admin' => {route => $under});
24

DESCRIPTION

26       Mojolicious::Plugin::Minion::Admin is a Mojolicious plugin providing an
27       admin ui for the Minion job queue.
28

OPTIONS

30       Mojolicious::Plugin::Minion::Admin supports the following options.
31
32   return_to
33         # Mojolicious::Lite
34         plugin 'Minion::Admin' => {return_to => 'some_route'};
35
36       Name of route or path to return to when leaving the admin ui, defaults
37       to "/".
38
39   route
40         # Mojolicious::Lite
41         plugin 'Minion::Admin' => {route => app->routes->any('/admin')};
42
43       Mojolicious::Routes::Route object to attach the admin ui to, defaults
44       to generating a new one with the prefix "/minion".
45

METHODS

47       Mojolicious::Plugin::Minion::Admin inherits all methods from
48       Mojolicious::Plugin and implements the following new ones.
49
50   register
51         $plugin->register(Mojolicious->new);
52
53       Register plugin in Mojolicious application.
54

SEE ALSO

56       Minion, <https://minion.pm>, Mojolicious::Guides,
57       <https://mojolicious.org>.
58
59
60
61perl v5.32.0                      2020-08-M0o2jolicious::Plugin::Minion::Admin(3)
Impressum