This commit is contained in:
Lukas Martinelli 2017-01-10 14:15:20 +00:00 committed by GitHub
commit c6e3f6f3e5

View file

@ -27,6 +27,11 @@ module.exports = function(options, allowedFonts) {
});
});
app.get('/fontstacks.json', function(req, res, next) {
res.header('Content-type', 'application/json');
return res.send(Object.keys(existingFonts));
});
app.get('/:fontstack/:range([\\d]+-[\\d]+).pbf',
function(req, res, next) {
var fontstack = decodeURI(req.params.fontstack);