controllers/app.js
Function handler
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handler: function(req, res) {
let searchType = String(req.params.type);
const searchStr = String(req.params.search);
let page = req.query.page;
let limit = req.query.limit;