I am working on a REST interface and wanted to see if there was a way
to do nested routes. I have tried via name spacing without any luck.
The URL desired would look something like
/members/jblayter/comments/12
I have a Users handler that picks up the members and then I want the
MemberComments handler to pick up the comments
Here is my non working namespace code
addNamespace(pattern="/members", namespace="members")
.addRoute(pattern="/:id?/comments/:commentId?",handler="MemberComments",action="index",namespace="members") .addRoute(pattern="/:id?/comments/",handler="MemberComments",action="index",namespace="members")
.addRoute(pattern="/:id?",handler="Users",action="index",namespace="members")
.addRoute(pattern="/",handler="Users",action="index",namespace="members");
John Blayter
Land line: 303.731.3009
Mobile: 303.325.1979
http://www.blayter.com/john/
Denver ColdFusion User Group Manager
http://denvercfug.org/