This repository has been archived on 2025-04-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
PoorBooru/bin/app.psgi
2023-02-18 09:49:05 +00:00

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