Commit 535dfdb872ee9b5df1e43f1d6879dff571d274b1
1 parent
b5e0b2fa56
Exists in
develop
Change
Nombre de servicio
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/services/sinonimo/sinonimo.service.ts
| 1 | import { Injectable } from '@angular/core'; | 1 | import { Injectable } from '@angular/core'; |
| 2 | import { APP_SETTINGS } from 'src/etc/AppSettings'; | 2 | import { APP_SETTINGS } from 'src/etc/AppSettings'; |
| 3 | import { HttpClient } from '@angular/common/http'; | 3 | import { HttpClient } from '@angular/common/http'; |
| 4 | 4 | ||
| 5 | @Injectable({ | 5 | @Injectable({ |
| 6 | providedIn: 'root' | 6 | providedIn: 'root' |
| 7 | }) | 7 | }) |
| 8 | export class SinonimoService { | 8 | export class SinonimoService { |
| 9 | urlDeboSuite = APP_SETTINGS.apiDeboSuite; | 9 | urlDeboSuite = APP_SETTINGS.apiDeboSuite; |
| 10 | 10 | ||
| 11 | constructor( | 11 | constructor( |
| 12 | private http: HttpClient, | 12 | private http: HttpClient, |
| 13 | ) { } | 13 | ) { } |
| 14 | 14 | ||
| 15 | getPromocionSinonimos(sector, codigo) { | 15 | getSinonimos(sector, codigo) { |
| 16 | return this.http.get(`${this.urlDeboSuite}/sinonimos/promo/${sector}/${codigo}`); | 16 | return this.http.get(`${this.urlDeboSuite}/sinonimos/promo/${sector}/${codigo}`); |
| 17 | } | 17 | } |
| 18 | } | 18 | } |
| 19 | 19 |