Ajout des 2 interceptors autour de
l'authentification
This commit is contained in:
@@ -21,4 +21,4 @@ export class BasicAuthInterceptor implements HttpInterceptor {
|
|||||||
|
|
||||||
return next.handle(request);
|
return next.handle(request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,6 @@ export class ErrorInterceptor implements HttpInterceptor {
|
|||||||
|
|
||||||
const error = err.error.message || err.statusText;
|
const error = err.error.message || err.statusText;
|
||||||
return throwError(error);
|
return throwError(error);
|
||||||
}))
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user