Skip to content

Commit

Permalink
fix(tile-converter): trailing slash Removing from path in i3s-server (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dariaterekhova-actionengine authored Nov 29, 2023
1 parent 358d23b commit bf60df8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sceneServerRouter.get('*', async function (req, res, next) {

export const router = express.Router();
router.get('*', async function (req, res, next) {
const file = await getFileByUrl(req.path);
const file = await getFileByUrl(req.path.replace(/\/+$/, ''));
if (file) {
res.send(Buffer.from(file));
} else {
Expand Down

0 comments on commit bf60df8

Please sign in to comment.