Zustand Driver Web
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user