mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
one final push, cleanup + organize + lint; made feeds/meta/plugins routes follow same pattern as other route files
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var user = require('./../user'),
|
||||
categories = require('./../categories'),
|
||||
topics = require('./../topics'),
|
||||
posts = require('./../posts');
|
||||
|
||||
var DebugRoute = function(app) {
|
||||
|
||||
module.exports = function(app, middleware, controllers) {
|
||||
app.namespace('/debug', function() {
|
||||
|
||||
app.get('/uid/:uid', function (req, res) {
|
||||
|
||||
if (!req.params.uid)
|
||||
if (!req.params.uid) {
|
||||
return res.redirect('/404');
|
||||
}
|
||||
|
||||
user.getUserData(req.params.uid, function (err, data) {
|
||||
if (data) {
|
||||
@@ -53,12 +52,5 @@ var DebugRoute = function(app) {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/test', function(req, res) {
|
||||
res.send(200);
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = DebugRoute;
|
||||
};
|
||||
Reference in New Issue
Block a user