Please jshint

This commit is contained in:
Daniel García Aubert 2018-03-20 11:09:05 +01:00
parent 2e13bc42a1
commit f8d1e159f4
2 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,6 @@ const cors = require('../middleware/cors');
const user = require('../middleware/user');
const locals = require('../middleware/locals');
const credentials = require('../middleware/credentials');
const userMiddleware = require('../middleware/user');
const rateLimit = require('../middleware/rate-limit');
const { RATE_LIMIT_ENDPOINTS_GROUPS } = rateLimit;

View File

@ -456,17 +456,17 @@ function withLayergroup(layergroupConfig, options, callback) {
const signerTpl = function ({ signer }) {
return `${signer ? `:${signer}@` : ''}`;
}
};
const cacheTpl = function ({ cache_buster, cacheBuster }) {
return `${cache_buster ? `:${cache_buster}` : `:${cacheBuster}`}`;
}
};
const urlTpl = function ({layergroupid, cache_buster = null, tile }) {
const { signer, token , cacheBuster } = LayergroupToken.parse(layergroupid);
const base = '/database/windshaft_test/layergroup/'
const base = '/database/windshaft_test/layergroup/';
return `${base}${signerTpl({signer})}${token}${cacheTpl({cache_buster, cacheBuster})}${tile}`;
}
};
const finalUrl = urlTpl({ layergroupid, cache_buster: options.cache_buster, tile: layergroupUrl });