Fix missing scheme in API url
This commit is contained in:
parent
fd14c12a4a
commit
6979368eda
@ -7,7 +7,7 @@ import { User } from '../models/user';
|
|||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class UserService {
|
export class UserService {
|
||||||
private url = 'localhost:59772/api';
|
private url = 'http://localhost:8080/api';
|
||||||
constructor(private http: HttpClient) {}
|
constructor(private http: HttpClient) {}
|
||||||
|
|
||||||
getUserList(): Observable<Array<User>> {
|
getUserList(): Observable<Array<User>> {
|
||||||
@ -17,4 +17,4 @@ export class UserService {
|
|||||||
getUserById(id: number): Observable<User> {
|
getUserById(id: number): Observable<User> {
|
||||||
return this.http.get<User>(`${this.url}/user/${id}`);
|
return this.http.get<User>(`${this.url}/user/${id}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user