all user account pages; all static pages; outgoing page

This commit is contained in:
psychobunny
2014-02-28 14:04:21 -05:00
parent 00df660fa5
commit e64d87cb1d
6 changed files with 394 additions and 273 deletions

View File

@@ -200,21 +200,7 @@ var path = require('path'),
} else {
res.send(403);
}
});
app.get('/outgoing', function (req, res) {
var url = req.query.url;
if (url) {
res.json({
url: url,
title: meta.config.title
});
} else {
res.status(404);
res.redirect(nconf.get('relative_path') + '/404');
}
});
});
app.get('/search', function (req, res) {
if ((req.user && req.user.uid) || meta.config.allowGuestSearching === '1') {
@@ -360,18 +346,6 @@ var path = require('path'),
});
});
app.get('/404', function (req, res) {
res.json({});
});
app.get('/403', function (req, res) {
res.json({});
});
app.get('/500', function(req, res) {
res.json({errorMessage: 'testing'});
});
app.namespace('/categories', function() {
app.get(':cid/moderators', function(req, res) {
categories.getModerators(req.params.cid, function(err, moderators) {