Browse Source

moved require to top

pull/782/head
Stephen Hess 8 years ago
parent
commit
b2ebdd9f4b
  1. 3
      routes/v1.js

3
routes/v1.js

@ -1,4 +1,5 @@
var Router = require('express').Router;
var elasticsearch = require('elasticsearch');
/** ----------------------- sanitizers ----------------------- **/
var sanitizers = {
@ -60,7 +61,7 @@ var postProc = {
* @param {object} peliasConfig
*/
function addRoutes(app, peliasConfig) {
const esclient = require('elasticsearch').Client(peliasConfig.esclient);
const esclient = elasticsearch.Client(peliasConfig.esclient);
var base = '/v1/';

Loading…
Cancel
Save