mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-22 13:53:48 +01:00
add supportedPrinters api call
This commit is contained in:
parent
c838625a86
commit
a32a778538
@ -13,4 +13,7 @@ export default class Config {
|
||||
set(data) {
|
||||
return rest.post(`${ this.api }config`, data);
|
||||
}
|
||||
supportedPrinters() {
|
||||
return rest.get(`${ this.api }config/supportedprinters`);
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,6 @@ export default class Printer {
|
||||
fetch(gcode = '') {
|
||||
rest.post(`https://tranquil-meadow-94621.herokuapp.com/upload`, { gcode })
|
||||
.then(response => {
|
||||
console.log(`gcode file id: ${ response }`);
|
||||
rest.post(`${ this.api }printer/fetch`, { id: response.id });
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
|
Loading…
Reference in New Issue
Block a user