Hello!
I’d like to match any GET request in Mojolicious::Lite. The code looks like this:
get '.*' => sub {
my $self = shift;
$self->render(text => 'Nothing to see here, move along.');
};
This dies with “Modification of non-creatable array value attempted” at MojoX::Routes::Pattern.pm, line 301. I tried other arguments to get
, like qr//
. That works for /
, but does not match /foo
. I also tried to peek at the source, but I’m none the wiser. Are you?