Update serve_style.js
This commit is contained in:
parent
b1e1d72f25
commit
e0574b1887
1 changed files with 4 additions and 4 deletions
|
@ -102,16 +102,16 @@ export const serve_style = {
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
app.get(`/:id/sprite{/:spriteID}{@:scale}{.:format}`, (req, res, next) => {
|
app.get(`/:id/sprite{/:spriteID}{@:scale}{.:format}`, (req, res, next) => {
|
||||||
if (verbose) {
|
const { spriteID = 'default', id, format } = req.params;
|
||||||
const { spriteID = 'default', id, format } = req.params;
|
const spriteScale = allowedSpriteScales(req.params.scale);
|
||||||
const spriteScale = allowedSpriteScales(req.params.scale);
|
|
||||||
|
|
||||||
|
if (verbose) {
|
||||||
console.log(
|
console.log(
|
||||||
`Handling sprite request for: /styles/%s/sprite/%s%s%s`,
|
`Handling sprite request for: /styles/%s/sprite/%s%s%s`,
|
||||||
String(id).replace(/\n|\r/g, ''),
|
String(id).replace(/\n|\r/g, ''),
|
||||||
String(spriteID).replace(/\n|\r/g, ''),
|
String(spriteID).replace(/\n|\r/g, ''),
|
||||||
String(spriteScale).replace(/\n|\r/g, ''),
|
String(spriteScale).replace(/\n|\r/g, ''),
|
||||||
String(format).replace(/\n|\r/g, ''),,
|
String(format).replace(/\n|\r/g, ''),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue