v1.18.x
Julian Lam 11 years ago
parent b176629b44
commit d27f2eb214

@ -48,9 +48,9 @@ var nconf = require('nconf'),
} }
Admin.createRoutes = function (app) { Admin.createRoutes = function (app) {
app.all('/api/admin/*', Admin.isAdmin); app.all('/api/admin/*', Admin.isAdmin);
app.all('/admin/*', Admin.isAdmin); app.all('/admin/*', Admin.isAdmin);
app.get('/admin', Admin.isAdmin);
(function () { (function () {
var routes = [ var routes = [

@ -670,7 +670,6 @@ websockets.init = function(io) {
}); });
socket.on('api:notifications.getCount', function(callback) { socket.on('api:notifications.getCount', function(callback) {
console.log('checking uid', uid);
user.notifications.getUnreadCount(uid, function(err, count) { user.notifications.getUnreadCount(uid, function(err, count) {
callback(err ? err.message : null, count); callback(err ? err.message : null, count);
}); });

Loading…
Cancel
Save