mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	all user account pages; all static pages; outgoing page
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user