balderdashy/sails — pull request #879 by rishabhmhjn (2013-09-16 16:45:13+00:00)
Title: Support resource-ful REST Url mapping

Related to the issue I submitted (#877)

Something like the following will also help if put along the custom routes section.
For REST resources based routes just like that of rails,
do the following:
```js
"/user": {
resource : "UserController"
}
```
which is equivalent to
```js
"get /user" : "UserController.index",
"get /user/add" : "UserController.add",
"get /user/:id" : "UserController.show",
"get /user/:id/edit" : "UserController.edit",
"post /user" : "UserController.create",
"put /user/:id" : "UserController.update",
"delete /user/:id" : "UserController.destroy"
```