I also put

my $url = $self->url_for("check_password_user", domainid => 'MyDomain', 
projid => 'Z', userid => 'MyUser', password => 'secret');

right after the route was defined. The URL it produced gave 404:

/api/2/domain/MyDomain/project/Z/user/MyUser/password/secret


On Friday, April 11, 2014 11:50:18 AM UTC-4, Richard Sugg wrote:
>
> As far as I can tell, I have a valid route for check_password_user, but 
> when I GET it, I get 404 back. Why doesn't this route match? When I run the 
> routes command, I get back
>
> /api/2/domain/:domainid/project/:projid/user  *       
>  api2domaindomainidprojectprojiduser
>   +/                                          POST     "create_user"
>   +/                                          GET      "list_user"
>   +/:userid                                   *        userid
>     +/                                        GET      "show_user"
>     +/                                        DELETE   "delete_user"
>     +/                                        PUT      "update_user"
>     +/password                                *        password
> *      +/:password                             GET     
>  "check_password_user"*
>
> which I think means the url 
>
> /api/2/domain/:domainid/project/:projid/user/:userid/password/:password
>
> would be a match for 
>
> /api/2/domain/MyDomain/project/MyProject/user/MyUser/password/Secret
>
> where domainid=MyDomain, project=MyProject, userid=MyUser, password=Secret
>
> but that URL will return 404 everytime.
>

-- 
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/d/optout.

Reply via email to