Skip to content
Permalink
Browse files

environment + banks

  • Loading branch information
ignatandrei committed Dec 28, 2019
1 parent 2aba3e9 commit 2106328935b972a4411f5412ba3fc810a46399b8
@@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';

import { BanksService } from './banks.service';

describe('BanksService', () => {
beforeEach(() => TestBed.configureTestingModule({}));

it('should be created', () => {
const service: BanksService = TestBed.get(BanksService);
expect(service).toBeTruthy();
});
});
@@ -0,0 +1,21 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { catchError, map, tap } from 'rxjs/operators';
import { environment } from './../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class BanksService {

constructor(private http:HttpClient) { }

public GetBanksIds(): Observable<string[]> {


const urlBanks=environment.url +'v1.0/TodayRates/Banks';
return this.http.get<string[]>(urlBanks);


}
}
@@ -1,3 +1,4 @@
export const environment = {
production: true
production: true,
url: 'https://localhost:44385/'
};
@@ -3,7 +3,8 @@
// The list of file replacements can be found in `angular.json`.

export const environment = {
production: false
production: false,
url: 'https://localhost:44385/'
};

/*

0 comments on commit 2106328

Please sign in to comment.
You can’t perform that action at this time.