Support fontstacks.json
This commit is contained in:
parent
d32e46ba2f
commit
deb21cf14b
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