mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-22 22:03:48 +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`);
|
||||
}
|
||||
|
||||
alive () {
|
||||
return rest.get(`${this.api}network/alive`);
|
||||
async alive () {
|
||||
try {
|
||||
await rest.get(`${this.api}network/alive`);
|
||||
|
||||
return true;
|
||||
} catch(error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user