I am getting this error in my angular project I am using angular version 6 and laravel 5
export class ServicesService {
baseUrl = 'https://savuk.000webhostapp.com/public/api/';
constructor(private http: HttpClient, private authentication: ) {
}
getcountries() {
console.log(this.authentication.gettocken());
return this.http.get<any>(this.baseUrl + 'country/all', {
headers: new HttpHeaders()
.set('Authorization', 'Bearer ')
});
}
}
this is the service from which api is called
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Q3ehKA
via IFTTT
Aucun commentaire:
Enregistrer un commentaire