default search in posts

v1.18.x
barisusakli 10 years ago
parent 6cd615ee45
commit 5e7bf7a272

@ -41,6 +41,7 @@ searchController.search = function(req, res, next) {
req.query.categories = [req.query.categories];
}
req.query.in = req.query.in || 'posts';
search.search({
query: req.params.term,
searchIn: req.query.in,

Loading…
Cancel
Save