mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
recent page, for hour, day, week, month
This commit is contained in:
@@ -131,9 +131,9 @@ var user = require('./../user.js'),
|
||||
}, req.params.id, uid);
|
||||
});
|
||||
|
||||
app.get('/recent', function (req, res) {
|
||||
app.get('/recent/:term?', function (req, res) {
|
||||
var uid = (req.user) ? req.user.uid : 0;
|
||||
topics.getLatestTopics(uid, 0, 19, function (data) {
|
||||
topics.getLatestTopics(uid, 0, 19, req.params.term, function (data) {
|
||||
res.json(data);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user