Resultat du cours n°8

This commit is contained in:
Vincent BENOIT
2022-03-29 17:12:02 +02:00
parent 2a9b6425db
commit 6a6c27f98a
17 changed files with 267 additions and 8 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export class EmployeesService {
constructor(private http:HttpClient) {}
getAllEmployees():Observable<Employee[]> {
let host=environment.host;
let host=Math.random()>0.2?environment.host:environment.unreachableHost;
return this.http.get<Employee[]>(host+"/employees");
}