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

View file

@ -1,5 +1,8 @@
# Kiri:Moto todo # Kiri:Moto todo
* circular bed support for delta printers
* hide the bed with a checkbox? indication of part outside printable area?
* set page background color? or dark mode?
* better small screen support (on screen button for hiding side panels, compact selectors) * better small screen support (on screen button for hiding side panels, compact selectors)
* widget general add-ons (fdm supports, cam tabs) * widget general add-ons (fdm supports, cam tabs)
* extend mesh object to store raw + annotations (rot,scale,pos) * extend mesh object to store raw + annotations (rot,scale,pos)