The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Acme::Plack::App::GyazoStocker - save Gyazo like images to local

SYNOPSIS

    use Plack::Builder;
    use Acme::Plack::App::GyazoStocker;

    builder {
        Acme::Plack::App::GyazoStocker->new(image_dir => './image/')->to_app;
    };

DESCRIPTION

Acme::Plack::App::GyazoStocker is the stocker from Gyazo like images.

When you upload an image to Gyazo, you access to same path of Acme::Plack::App::GyazoStocker app. Then an image saves your local directory and your client is redirected to the image viewer path ( /image/***.png ) on Acme::Plack::App::GyazoStocker.

See example/stock.psgi for more details.

METHODS

prepare_app
call
root

save an image and redirect to the image viewer path

image

view an image

REPOSITORY

Acme::Plack::App::GyazoStocker is hosted on github <http://github.com/bayashi/Acme-Plack-App-GyazoStocker>

Welcome your patches and issues :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

<https://gyazo.com/>

Plack::Component

Plack::App::File

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.