From 3722c653f11c0fbfc56e9d189d4d72e0af4fc9b1 Mon Sep 17 00:00:00 2001 From: Petr Sloup Date: Wed, 25 Jan 2017 15:08:47 +0100 Subject: [PATCH] Rename /fontstacks.json to /fonts.json for better consistency (#104) --- docs/endpoints.rst | 2 +- src/serve_font.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/endpoints.rst b/docs/endpoints.rst index 6cf047c..3128085 100644 --- a/docs/endpoints.rst +++ b/docs/endpoints.rst @@ -63,4 +63,4 @@ Array of all TileJSONs is at ``/index.json`` (``/rendered.json``; ``/data.json`` 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`` diff --git a/src/serve_font.js b/src/serve_font.js index 4500466..954476b 100644 --- a/src/serve_font.js +++ b/src/serve_font.js @@ -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'); return res.send( Object.keys(options.serveAllFonts ? existingFonts : allowedFonts).sort()