crontab tips

use strict;
use warnings;
use Amon2::Lite;

get '/cron/regen/rss' => sub {
    my $c = shift;

    # ...

    $c->create_response(200, [], 'ok');
};

__PACKAGE__->to_app;

*/10 * * * * cronlog -- wget -O - http://localhost:5000/cron/regen/rss 2>&1