feat: add query param for static attribution text

Signed-off-by: Craig Kochis <cjkochis@gmail.com>
This commit is contained in:
Craig Kochis 2023-10-26 12:18:21 -04:00
parent f3da24b9b7
commit 5f87e6d640

View file

@ -933,6 +933,12 @@ export const serve_rendered = {
if (!item) {
return res.sendStatus(404);
}
// override attribution text
if (req.query.attributionText) {
item.staticAttributionText = req.query.attributionText;
}
const raw = req.params.raw;
const z = +req.params.z;
let x = +req.params.x;