PoorBooru/bin/app.psgi
2023-02-18 09:49:05 +00:00

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;
};