Add database connection check

This commit is contained in:
Ben Goldsworthy 2020-11-28 19:36:19 +00:00
parent 5d737efcc5
commit 2c3e2c651d
2 changed files with 19 additions and 1 deletions

View file

@ -42,6 +42,13 @@ export class ApiService {
localStorage.removeItem('sessionKey');
}
public checkDatabaseConnection() {
return this.http.post<any>(
this.apiUrl,
null
);
}
public register(data) {
return this.http.post<any>(
this.apiUrl + '/register',