mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
socketizing topic creation so that a new topic shows up automatically when one is created
This commit is contained in:
@@ -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));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user