This commit is contained in:
@ -73,11 +73,11 @@ export class AuthService {
|
||||
|
||||
login(user: User) {
|
||||
this.http
|
||||
.post<LoginResponse>(`${environment.apiRoot}/login`, user)
|
||||
.post<LoginResponse>(`${environment.apiRoot}/auth/login`, user)
|
||||
.subscribe((res) => this.jwt.set(res.token));
|
||||
}
|
||||
logout() {
|
||||
this.http.delete(`${environment.apiRoot}/logout`).subscribe(() => {
|
||||
this.http.delete(`${environment.apiRoot}/auth/logout`).subscribe(() => {
|
||||
this.jwt.set(null);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user