Mojolicious::Plugin::Minion::Admin(3pm)

Mojolicious::Plugin::Minion::Admin3pm

Admin ui

Usage

  # Mojolicious
  $self->plugin('Minion::Admin');
  # Mojolicious::Lite
  plugin 'Minion::Admin';
  # Secure access to the admin ui with Basic authentication
  my $under = $self->routes->under('/minion' =>sub ($c) {
    return 1 if $c->req->url->to_abs->userinfo eq 'Bender:rocks';
    $c->res->headers->www_authenticate('Basic');
    $c->render(text => 'Authentication required!', status => 401);
    return undef;
  });
  $self->plugin('Minion::Admin' => {route => $under});

Overview

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

Options

Mojolicious::Plugin::Minion::Admin supports the following options.

return_to

  # Mojolicious::Lite
  plugin 'Minion::Admin' => {return_to => 'some_route'};

Name of route or path to return to when leaving the admin ui, defaults to "/".

route

  # Mojolicious::Lite
  plugin 'Minion::Admin' => {route => app->routes->any('/admin')};

Mojolicious::Routes::Route object to attach the admin ui to, defaults to generating a new one with the prefix "/minion".

Methods

Mojolicious::Plugin::Minion::Admin inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

  $plugin->register(Mojolicious->new);

Register plugin in Mojolicious application.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libminion-perl 10.31+dfsg-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.