add base api path to nestjs: "api"

This commit is contained in:
Roland Schneider
2025-11-13 21:49:41 +01:00
parent e09110346e
commit 19ca0c086c
9 changed files with 73 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { Observable } from 'rxjs';
import { tap } from 'rxjs/operators';
@Injectable({
@@ -8,7 +8,7 @@ import { tap } from 'rxjs/operators';
})
export class AuthService {
private readonly TOKEN_KEY = 'access_token';
private apiUrl = 'http://localhost:3000/auth'; // Adjust if your server URL is different
private apiUrl = 'http://localhost:4200/api/auth'; // Adjust if your server URL is different
constructor(private http: HttpClient) {}