PoorBooru/bin/app.psgi

16 lines
253 B
Plaintext
Raw Normal View History

2023-02-18 10:49:05 +01:00
#!/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;
};