Zustand Driver Web

This commit is contained in:
ChK
2026-04-04 20:02:41 +02:00
parent bca05ba77c
commit 5bbd3f5525
6 changed files with 1772 additions and 8 deletions

View File

@@ -201,6 +201,9 @@ const infoServer = https.createServer(httpsOptions, (req, res) => {
};
res.writeHead(200, {'Content-Type': 'application/json'});
res.end(JSON.stringify(status));
} else if (req.url === '/api/position'){
res.writeHead(200, {'Content-Type': 'application/json'});
res.end(GCode.getM114(robot));
} else {
res.writeHead(404);
res.end('Not found');