NAME
WWW::Suffit::Plugin::API::Admin - The Admin API Suffit plugin
SYNOPSIS
sub
startup {
my
$self
=
shift
->SUPER::startup();
$self
->plugin(
'API::Admin'
, {
prefix_path
=>
"/admin"
,
prefix_name
=>
"admin"
,
});
# . . .
}
sub
startup {
my
$self
=
shift
->SUPER::startup(
init_admin_routes
=>
'on'
,
admin_routes_opts
=> {
prefix_path
=>
"/admin"
,
prefix_name
=>
"admin"
,
}
);
# . . .
}
DESCRIPTION
The Admin API Suffit plugin
This plugin requires WWW::Suffit::Plugin::API plugin
OPTIONS
This plugin supports the following options
prefix_name
prefix_name
=>
"admin"
This option defines prefix of admin api route name
Default: 'admin'
prefix_path
prefix_path
=>
"/admin"
This option defines prefix of admin api route
Default: '/admin'
METHODS
This plugin inherits all methods from Mojolicious::Plugin and implements the following new ones
register
This method register the plugin and helpers in Mojolicious application
$plugin
->register(Mojolicious->new, {
prefix_path
=>
"/admin"
,
prefix_name
=>
"admin"
,
});
Register plugin in Mojolicious application
SEE ALSO
Mojolicious, WWW::Suffit::Server, WWW::Suffit::AuthDB, WWW::Suffit::Plugin::API
AUTHOR
Serż Minus (Sergey Lepenkov) https://www.serzik.com <abalama@cpan.org>
COPYRIGHT
Copyright (C) 1998-2024 D&D Corporation. All Rights Reserved
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE
file and https://dev.perl.org/licenses/