fix /data paths
This commit is contained in:
parent
b01b2be818
commit
c6f40d17a3
1 changed files with 6 additions and 1 deletions
7
app.js
7
app.js
|
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue