#Importing HttpService from 'nestjs/axios' library to interceptor

3 messages · Page 1 of 1 (latest)

safe atlas
#

How to import HttpService inside an nestjs interceptor, I need it to call an external endpoint API, how should I import it to work?

warm sequoia
#

add this to your guard:
private readonly httpService: HttpService

#

and you must import the HttpModule inside your module