I am using request npm module. I have a gateway which acts as the middle man, takes request from outside and forwards it to the concerned microservice. For downloads, I have the following code.
if (
req.baseUrl.match('download') ||
req.url.match('download')
) {
request.get(url).pipe(res);
return;
}
Now I have to upload image to a microservice, how do I do that, I am clueless.