get '/from/:foo/to/:bar' => sub { my $req = shift; return { -content => "foo=".$req->param("foo", '\d+') }; };