fix /data paths

This commit is contained in:
Stewart Allen 2020-06-01 22:17:44 -04:00
commit c6f40d17a3

7
app.js
View file

@ -426,7 +426,7 @@ function handleData(req, res, next) {
addCorsHeaders(req, res);
res.setHeader('Cache-Control', 'private, no-cache, max-age=0');
let tok = req.app.url.path.split('/'),
let tok = req.app.path.split('/'),
muid = req.headers['x-moto-ajax'],
space = tok[2] || null,
version = tok[3],
@ -530,6 +530,11 @@ function handleData(req, res, next) {
});
return;
} else {
next();
}
}