Skip to content

Instantly share code, notes, and snippets.

View hcontreras's full-sized avatar
🏠
Working from home

Humberto hcontreras

🏠
Working from home
View GitHub Profile
/* 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');