Rename /fontstacks.json to /fonts.json for better consistency (#104)

This commit is contained in:
Petr Sloup 2017-01-25 15:08:47 +01:00
parent 6231f9f7a7
commit 3722c653f1
2 changed files with 2 additions and 2 deletions

View file

@ -63,4 +63,4 @@ Array of all TileJSONs is at ``/index.json`` (``/rendered.json``; ``/data.json``
List of available fonts List of available fonts
======================= =======================
Array of names of the available fonts is at ``/fontstacks.json`` Array of names of the available fonts is at ``/fonts.json``

View file

@ -48,7 +48,7 @@ module.exports = function(options, allowedFonts) {
}); });
}); });
app.get('/fontstacks.json', function(req, res, next) { app.get('/fonts.json', function(req, res, next) {
res.header('Content-type', 'application/json'); res.header('Content-type', 'application/json');
return res.send( return res.send(
Object.keys(options.serveAllFonts ? existingFonts : allowedFonts).sort() Object.keys(options.serveAllFonts ? existingFonts : allowedFonts).sort()