fix: allow tile size in data url

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2024-01-22 00:14:32 -05:00
parent 2a71a96b71
commit 0047cb0bbb

View file

@ -22,7 +22,7 @@ export const serve_data = {
const app = express().disable('x-powered-by');
app.get(
'/:id/:z(\\d+)/:x(\\d+)/:y(\\d+).:format([\\w.]+)',
'/:id/(:tileSize(256|512)/)?:z(\\d+)/:x(\\d+)/:y(\\d+).:format([\\w.]+)',
async (req, res, next) => {
const item = repo[req.params.id];
if (!item) {