Merge deb21cf14b
into 473e7b6f4a
This commit is contained in:
commit
c6e3f6f3e5
1 changed files with 5 additions and 0 deletions
|
@ -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',
|
app.get('/:fontstack/:range([\\d]+-[\\d]+).pbf',
|
||||||
function(req, res, next) {
|
function(req, res, next) {
|
||||||
var fontstack = decodeURI(req.params.fontstack);
|
var fontstack = decodeURI(req.params.fontstack);
|
||||||
|
|
Loading…
Reference in a new issue