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
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire