fix: allow tile size in data url
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
2a71a96b71
commit
0047cb0bbb
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue