diff --git a/lib/units/api/controllers/user.js b/lib/units/api/controllers/user.js index 7ad97569..f82ce2b0 100644 --- a/lib/units/api/controllers/user.js +++ b/lib/units/api/controllers/user.js @@ -5,6 +5,6 @@ module.exports = { function getCurrentUser(req, res) { res.json({ success: true - , user: {"name": "dummy"} + , user: req.user }) } diff --git a/lib/units/app/index.js b/lib/units/app/index.js index e355bd90..81cbcc24 100644 --- a/lib/units/app/index.js +++ b/lib/units/app/index.js @@ -124,13 +124,6 @@ module.exports = function(options) { res.send('var GLOBAL_APPSTATE = ' + JSON.stringify(state)) }) - app.get('/app/api/v1/user', function(req, res) { - res.json({ - success: true - , user: req.user - }) - }) - app.get('/app/api/v1/group', function(req, res) { dbapi.loadGroup(req.user.email) .then(function(cursor) {