Best way to verify request in nodejs Application

I am making an api gateway, where I will receive the request and redirect it to other services. So my question is should I verify the required authentication at my api gateway side or leave it for service ? and what is the best way to redirect the request to other services build in redirect function or axios post method ?

I am certainly no expert here, but I think one of the purposes of the gateway is to keep your services hidden, unexposed. I think your gateway should handle auth (that way it’s all in one place) and the gateway is the only thing that can talk to your service.

and what is the best way to redirect the request to other services build in redirect function or axios post method ?

I don’t know, I’ve never built a gateway. I assume it is making requests to your service. I don’t think redirect is what you want.

Again, I am no expert on this, but I saw that no one answered.