Skip to content
Snippets Groups Projects
Commit 6c9b2fb0 authored by Olabarrieta Palacios, Ignacio's avatar Olabarrieta Palacios, Ignacio
Browse files

a

parent 7adf2ecd
No related branches found
No related tags found
No related merge requests found
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ConfigService } from '@ngx-config/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class GetLineService{
private apiURL: any;
constructor(configService: ConfigService,private http:HttpClient) {
this.apiURL = configService.getSettings("bus_od_api_base_url");
}
getValues(linea:string): Observable<any> {
return this.http.get<any>(`${this.apiURL}/webresources/getData/getData/`+linea);
}
}
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ConfigService } from '@ngx-config/core';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class GetLinesService{
private apiURL: any;
constructor(configService: ConfigService,private http:HttpClient) {
this.apiURL = configService.getSettings("bus_od_api_base_url");
}
getValues(): Observable<any> {
return this.http.get<any>(`${this.apiURL}/webresources/getData/getLines/`);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment