From afc585bb8747ad4cc6c6a24ef4f3e6e8cde9dbcf Mon Sep 17 00:00:00 2001 From: Diana Shkolnikov Date: Mon, 1 Aug 2016 21:28:04 -0400 Subject: [PATCH] pass config to controller in nearby router setup --- routes/v1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/v1.js b/routes/v1.js index 7345310c..674c1f5c 100644 --- a/routes/v1.js +++ b/routes/v1.js @@ -105,7 +105,7 @@ function addRoutes(app, peliasConfig) { nearby: createRouter([ sanitisers.nearby.middleware, middleware.calcSize(), - controllers.search(undefined, reverseQuery), + controllers.search(peliasConfig, undefined, reverseQuery), postProc.distances('point.'), // reverse confidence scoring depends on distance from origin // so it must be calculated first