Closed tj closed 13 years ago
I like the idea, but I think I would prefer :user_id
vs :user
. That's just my personal preference though, coming from the ruby world.
yeah, but two reasons that is worse IMO:
plus I have this changed already haha, the issue is just for defining additional actions
currently:
is
GET /users/foo
, notGET /users/:user/foo
as some would expect, however we do need a way to define both. I propose thatusers.get('/foo/bar')
is /users/foo/bar, and
users.get('foo/bar')is
/users/:user/foo/bar`