import { environment } from 'src/environments/environment'; this.http.get( `${environment.masterApi}/master/master/getcountrylist` ); this.http.get( `${environment.masterApi}/index.php?r=master/master/getcountrylist`, { headers: { 'Accept': 'application/json', 'Authorization': `Bearer ${token}` // if using JWT } } );