mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
merging from stash
This commit is contained in:
@@ -356,8 +356,8 @@ passport.deserializeUser(function(uid, done) {
|
||||
});
|
||||
|
||||
app.get('/test', function(req, res) {
|
||||
global.modules.posts.get(function(data) {
|
||||
res.send('<pre>' + JSON.stringify(data, null, 4) + '</pre>');
|
||||
global.modules.posts.create(2, 2, 'test', function(pid) {
|
||||
res.send('<pre>' + pid + '</pre>');
|
||||
}, 1, 1);
|
||||
});
|
||||
}(WebServer));
|
||||
|
||||
Reference in New Issue
Block a user