Skip to content

Instantly share code, notes, and snippets.

View mona87's full-sized avatar

Ramona Bellamy mona87

View GitHub Profile
@mona87
mona87 / api.js
Last active August 29, 2015 14:24 — forked from fwielstra/api.js
/* 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');