diff --git a/src/routes/user.js b/src/routes/user.js index af926a514a..bcedd71112 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -432,6 +432,15 @@ var fs = require('fs'), }); }); + + app.get('/api/user/uid/:uid', function(req, res, next) { + var uid = req.params.uid ? req.params.uid : 0; + + user.getUserData(uid, function(err, userData) { + res.json(userData); + }); + }); + app.get('/api/user/:userslug', function (req, res, next) { var callerUID = req.user ? req.user.uid : '0';