removing static saving of recent post, and added in dynamic pulling on Topics.get

This commit is contained in:
Julian Lam
2013-05-17 12:25:06 -04:00
parent 12ff6bf1e1
commit 4b6ad9607e
5 changed files with 72 additions and 26 deletions

View File

@@ -227,13 +227,12 @@ var express = require('express'),
app.get('/api/:method/:id*', api_method);
app.get('/test', function(req, res) {
categories.getModerators(2, function(mods) {
res.send(JSON.stringify(mods));
topics.get_teasers([1, 2, 3], function(teasers) {
res.send(JSON.stringify(teasers));
});
});
//START TODO: MOVE TO GRAPH.JS
app.get('/graph/users/:username/picture', function(req, res) {