Skip to content

Instantly share code, notes, and snippets.

View ayasuda2OO3's full-sized avatar

安田アポロ ayasuda2OO3

View GitHub Profile
@ayasuda2OO3
ayasuda2OO3 / api.js
Created December 13, 2013 06:45 — 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');