src/provider/edc_api/edc.services.ts
Methods |
|
constructor(httpService: HttpService)
|
||||||
Defined in src/provider/edc_api/edc.services.ts:4
|
||||||
Parameters :
|
Async getCanalDistribuidor |
getCanalDistribuidor(supplierId: number, authorization: string)
|
Defined in src/provider/edc_api/edc.services.ts:7
|
Returns :
unknown
|
import { Injectable, Logger } from '@nestjs/common';
import { HttpService } from '@nestjs/axios';
@Injectable()
export class EdcService {
constructor(private readonly httpService: HttpService) { }
async getCanalDistribuidor(supplierId: number, authorization: string) {
const response = await this.httpService.axiosRef.get(`${process.env.EDC_API_URL}/fornecedor-canal/find/${supplierId}`,{
headers:{authorization}
})
return response.data;
}
}