I am currently using an Angular service to make calls to a Node.js server in order to fetch data. Here is a snippet of my code:
constructor(private http: HttpClient){
}
getPersonData(): Observable<person[]> {
//return this.http.get<person[]>('/assets/data/people.json');
return this.http.get<person[]>("127.0.0.1:3000/people");
}
However, when I try to access the data through the browser, I encounter a "not found" error for
The expected URL should be: 127.0.0.1:3000/people