mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-23 06:13:47 +01:00
alive returns boolean
This commit is contained in:
parent
f5f406c93d
commit
e35b68bd8f
@ -45,7 +45,13 @@ export default class {
|
|||||||
return rest.get(`${this.api}network/signin`);
|
return rest.get(`${this.api}network/signin`);
|
||||||
}
|
}
|
||||||
|
|
||||||
alive () {
|
async alive () {
|
||||||
return rest.get(`${this.api}network/alive`);
|
try {
|
||||||
|
await rest.get(`${this.api}network/alive`);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
} catch(error) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user