From 184ce881772423ff40a2619c3ec808e04618c57c Mon Sep 17 00:00:00 2001 From: Dhilip kumar Velusamy Date: Fri, 20 Dec 2019 11:38:50 +0530 Subject: [PATCH] Update index.js --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 7a7fcb5..823955b 100644 --- a/routes/index.js +++ b/routes/index.js @@ -15,7 +15,7 @@ module.exports = { items = data[resource]; return returnSingle(items, itemArg, res); } - if (resource === 'cities') { + if (resource === 'cities' || resource === 'weather') { items = search(data[resource], req, res, false, true); } else { items = search(data[resource], req, res, true);