0
0
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:
casperlamboo 2016-04-16 18:05:35 +02:00
parent f5f406c93d
commit e35b68bd8f

View File

@ -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;
}
} }
} }