Browse Source

moved `require`'d pelias-labels to "global"

pull/680/head
Stephen Hess 8 years ago
parent
commit
c8d32ddd14
  1. 4
      middleware/assignLabels.js

4
middleware/assignLabels.js

@ -1,6 +1,8 @@
var defaultLabelGenerator = require('pelias-labels');
function setup(labelGenerator) { function setup(labelGenerator) {
function middleware(req, res, next) { function middleware(req, res, next) {
return assignLabel(req, res, next, labelGenerator || require('pelias-labels')); return assignLabel(req, res, next, labelGenerator || defaultLabelGenerator);
} }
return middleware; return middleware;

Loading…
Cancel
Save