- Nouns are good; verbs are bad
- Keep your base URL simple and intuitive
- Only 2 base URLs per resource
- For a collection
/dogs
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |