example of how to do the same thing with Mojolicious::Lite