Seeking assistance with Angular 7 and Loopback API integration. Currently working on testing a sample code that involves a token and token/generate-token. Need guidance on how to generate or access this token aside from the mentioned methods. Any help would be appreciated.
API function details:
login(loginPayload) : Observable<ApiResponse> {
return this.http.post<ApiResponse>('http://localhost:3000/' +'token/generate-token', loginPayload);
}
Encountering an error message with a 404 status when attempting the above action.
message: "Http failure response for http://localhost:3000/token/generate-token: 404 Not Found"
Error details: name: "HttpErrorResponse" ok: false status: 404 statusText: "Not Found" url: "http://localhost:3000/token/generate-token"