You can try this:
$r->route(/*page)->to(cb=>sub{}, page=>'index');
Hi,
I'm trying to add a maintenance page, something that will be displayed
for all bar a few routes whilst the database is being maintained:
http://pastie.org/8632859
However, I cannot quite understand how to create a catch-all route do
accept any url. The patterns '/', '/(*everything)' and variants all
bring up the 'route missing' page in morbo. I can't tell if this is by
design since the app is running in development mode.
Any ideas?
Thanks,
Allan
--
You received this message because you are subscribed to the Google
Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.