Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get '/something/else' => sub {
- my ($self) = @_;
- $ex->ioloop()->timer(
- 0.5 => sub {
- app->log->debug("Delayed handler startup.");
- my $file = '/tmp/10.78.152.213/host-10.78.152.213-1289814029.png';
- my $s = Mojolicious::Static->new();
- $s->prefix('/');
- $s->root('/');
- $s->serve($self, $file);
- return $self->rendered();
- }
- );
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement