NAME

Mojolicious::Plugin::Minion::API

SYNOPSIS

use Mojolicious::Lite;
use Minion;

plugin 'Minion::API' => {
    minion => Minion->new(Pg => 'postgresql://postgres@/test')
};

app->start;

DESCRIPTION

Mojolicious::Plugin::Minion::API is a plugin Mojolicious. This module provides an API to receive request from Minion::Backend::API

OPTIONS

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

minion

# Mojolicious::Lite
plugin 'Minion' => {
    mysql => 'mysql://user@127.0.0.1/minion_jobs'
};    

plugin 'Minion::API' => {
    minion => app->minion
};

Minion object to handle backend, this option is mandatory.

pattern

# Mojolicious::Lite
plugin 'Minion::API' => {
    pattern => '/minion-api' # https://my-api.com/minion-api
};

This option is to set pattern in url, see more Mojolicious::Routes::Route#under

SEE ALSO

Minion::Backend::API, Minion, Mojolicious::Guides, https://mojolicious.org.

AUTHOR

Lucas Tiago de Moraes lucastiagodemoraes@gmail.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Lucas Tiago de Moraes.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.