Browse Source

inject `query` to use

pull/666/head
Stephen Hess 8 years ago
parent
commit
0a59e2750f
  1. 2
      routes/v1.js

2
routes/v1.js

@ -63,7 +63,7 @@ function addRoutes(app, peliasConfig) {
search: createRouter([ search: createRouter([
sanitisers.search.middleware, sanitisers.search.middleware,
middleware.calcSize(), middleware.calcSize(),
controllers.search(peliasConfig), controllers.search(peliasConfig, undefined, require('../query/search')),
postProc.trimByGranularity(), postProc.trimByGranularity(),
postProc.distances('focus.point.'), postProc.distances('focus.point.'),
postProc.confidenceScores(peliasConfig), postProc.confidenceScores(peliasConfig),

Loading…
Cancel
Save