16 lines
253 B
Perl
Executable File
16 lines
253 B
Perl
Executable File
#!/usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
use FindBin;
|
|
use lib "$FindBin::Bin/../lib";
|
|
|
|
use PoorBooru;
|
|
use PoorBooru::API::V0;
|
|
use Plack::Builder;
|
|
|
|
builder {
|
|
mount "/" => PoorBooru->to_app;
|
|
mount "/api/v0" => PoorBooru::API::V0->to_app;
|
|
};
|