feat: update environment configurations and improve Docker health checks
This commit is contained in:
@@ -3,6 +3,7 @@ import {catchError, map, of, switchMap, tap} from 'rxjs';
|
||||
import {Credentials} from '../interfaces/credentials';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {User} from '../interfaces/user';
|
||||
import {environment} from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -10,7 +11,7 @@ import {User} from '../interfaces/user';
|
||||
export class AuthService {
|
||||
|
||||
private readonly http = inject(HttpClient);
|
||||
private readonly BASE_URL = 'http://localhost:3000/api/auth';
|
||||
private readonly BASE_URL = `${environment.apiUrl}/auth`;
|
||||
|
||||
readonly user = signal<User | null>(null);
|
||||
private readonly accessToken = signal<string | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user