add notes. fix /data get/put
This commit is contained in:
parent
ec207d896a
commit
936f5505b1
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
notes.md
3
notes.md
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue