Subject: | Routes with non-numeric ids not working |
Date: | Wed, 23 Apr 2014 16:34:44 +0200 |
To: | bug-Mojolicious-Plugin-RESTRoutes [...] rt.cpan.org |
From: | André Lang <sierra [...] webrausch.de> |
Routes do not match non-numeric ids, i.e.
GET /api/users/123 --> My::Mojo::User::rest_show() is called
GET /api/users/mustermann --> 404 error (route does not exist)
I'm not quite sure if allowing non-numeric ids conflicts with chaining,
but regarding RESTful-ness, non-numeric ids are allowed and should be
supported.
It took me some time to find out why I always got a 404 "route not
found" when using your module as my URL was ok until I noticed that
"qr/\d+/" filtering in the source.