Group
Extension

Matches 1

Mojolicious-Plugin-ReplyTime ( S/SA/SADAMS/Mojolicious-Plugin-ReplyTime-0.02.tar.gz, SADAMS, 2019; MetaCPAN )
Mojolicious-Plugin-ReplyTime/lib/Mojolicious/Plugin/ReplyTime.pm ( view source; MetaCPAN )
('reply.time' => sub {
    shift->respond_to(
      html => {text => scalar localtime},
      json => {json => {time => scalar localtime}},
    );
  });
  $app->routes->get('/replytime')->to(cb => sub
 that adds a
reply helper named "time" to the Mojolicious controller object. It will
respond to a JSON request with '{"time":"[scalar localtime]"}' and any other
request with a plain text response of 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.