Fix missing scheme in API url

This commit is contained in:
Sebastiaan de Schaetzen 2025-05-14 16:50:23 +02:00
parent fd14c12a4a
commit 6979368eda

View File

@ -7,7 +7,7 @@ import { User } from '../models/user';
providedIn: 'root',
})
export class UserService {
private url = 'localhost:59772/api';
private url = 'http://localhost:8080/api';
constructor(private http: HttpClient) {}
getUserList(): Observable<Array<User>> {
@ -17,4 +17,4 @@ export class UserService {
getUserById(id: number): Observable<User> {
return this.http.get<User>(`${this.url}/user/${id}`);
}
}
}