From d27f2eb2141b67e89014ba8cbc63c41802e104a3 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 4 Dec 2013 16:25:42 -0500 Subject: [PATCH] fixed #604 --- src/routes/admin.js | 2 +- src/websockets.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/admin.js b/src/routes/admin.js index 28dffa27d8..736fb9c50d 100644 --- a/src/routes/admin.js +++ b/src/routes/admin.js @@ -48,9 +48,9 @@ var nconf = require('nconf'), } Admin.createRoutes = function (app) { - app.all('/api/admin/*', Admin.isAdmin); app.all('/admin/*', Admin.isAdmin); + app.get('/admin', Admin.isAdmin); (function () { var routes = [ diff --git a/src/websockets.js b/src/websockets.js index 86bee24cf4..ca85bd216c 100644 --- a/src/websockets.js +++ b/src/websockets.js @@ -670,7 +670,6 @@ websockets.init = function(io) { }); socket.on('api:notifications.getCount', function(callback) { - console.log('checking uid', uid); user.notifications.getUnreadCount(uid, function(err, count) { callback(err ? err.message : null, count); });