Add loading page when starting the app + fix electron refresh error
This commit is contained in:
1 parent
0b1a1d989f
commit
31d38d8da9
13 files changed
+397
-50
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../../../environments/environment.prod';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class PingService {
|
||||
private backend_apiUrl = environment.API_URL;
|
||||
private apiAction = 'ping';
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
ping() {
|
||||
return this.http.get<string>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}`
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user