removed unread total route

v1.18.x
barisusakli 11 years ago
parent d1b4efeaa3
commit 39886c8545

@ -56,7 +56,7 @@ categoriesController.unreadTotal = function(req, res, next) {
return next(err); return next(err);
} }
res.render('unread', data); res.json(data);
}); });
}; };

@ -77,7 +77,6 @@ function categoryRoutes(app, middleware, controllers) {
app.get('/unread/', middleware.buildHeader, middleware.authenticate, controllers.categories.unread); app.get('/unread/', middleware.buildHeader, middleware.authenticate, controllers.categories.unread);
app.get('/api/unread/', middleware.authenticate, controllers.categories.unread); app.get('/api/unread/', middleware.authenticate, controllers.categories.unread);
app.get('/unread/total', middleware.buildHeader, middleware.authenticate, controllers.categories.unreadTotal);
app.get('/api/unread/total', middleware.authenticate, controllers.categories.unreadTotal); app.get('/api/unread/total', middleware.authenticate, controllers.categories.unreadTotal);
app.get('/category/:category_id/:slug?', middleware.buildHeader, middleware.addSlug, controllers.categories.get); app.get('/category/:category_id/:slug?', middleware.buildHeader, middleware.addSlug, controllers.categories.get);

Loading…
Cancel
Save