add notes. fix /data get/put

This commit is contained in:
Stewart Allen 2020-02-17 15:26:06 -05:00
commit 936f5505b1
2 changed files with 4 additions and 2 deletions

View file

@ -410,7 +410,7 @@ function handleData(req, res, next) {
addCorsHeaders(req, res);
res.setHeader('Cache-Control', 'private, no-cache, max-age=0');
let tok = req.url.split('/'),
let tok = req.gs.url.path.split('/'),
muid = req.headers['x-moto-ajax'],
space = tok[2] || null,
version = tok[3],
@ -597,7 +597,6 @@ function handleCode(req, res, next) {
let cookie = getCookieValue(req.headers.cookie),
key = req.gs.path.split('/')[2].split('.')[0],
js = code[key];
if (!js) {
return reply404(req, res);
}