PoorBooru/lib/PoorBooru.pm

21 lines
320 B
Perl
Raw Normal View History

2023-03-04 22:58:18 +01:00
package PoorBooru;
use v5.36;
use strict;
use warnings;
use Mojo::Base "Mojolicious";
sub startup ($self)
{
$self->moniker("poorbooru");
my $config = $self->plugin("Config");
$self->secrets($config->{secrets});
$self->plugin(Mount => {
"/api/v0" => $self->home->child("script", "poorbooru-api-v0"),
});
}
1;