socketizing topic creation so that a new topic shows up automatically when one is created

This commit is contained in:
Julian Lam
2013-05-17 14:25:45 -04:00
parent 3df8d7279b
commit 297c4b8173
3 changed files with 85 additions and 9 deletions

View File

@@ -227,8 +227,8 @@ var express = require('express'),
app.get('/api/:method/:id*', api_method);
app.get('/test', function(req, res) {
topics.get_teasers([1, 2, 3], function(teasers) {
res.send(JSON.stringify(teasers));
topics.get_topic(3, 1, function(data) {
res.send(JSON.stringify(data));
});
});