Add database connection check
This commit is contained in:
parent
5d737efcc5
commit
2c3e2c651d
2 changed files with 19 additions and 1 deletions
|
@ -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',
|
||||
|
|
Reference in a new issue