fixed direct loading of popular page

This commit is contained in:
Baris Soner Usakli
2014-01-30 19:52:32 -05:00
parent 817546c6cf
commit ab2b0e6560
3 changed files with 140 additions and 0 deletions

View File

@@ -868,6 +868,16 @@ module.exports.server = server;
});
app.get('/popular/:term?', function (req, res) {
app.build_header({
req: req,
res: res
}, function (err, header) {
res.send(header + app.create_route('popular/' + req.params.term, null, 'popular') + templates.footer);
});
});
app.get('/outgoing', function (req, res) {
if (!req.query.url) {
return res.redirect('/404');