Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

162
Visualizações
Nodejs internalyl call another endpoint without Axios and hitting middlewares of that endpoint

I have a scenario where I will have to register a business and create account for each directors of the business. So I should hit /auth/user api after /business post request is successful and send out the response to the user without waiting for the user account creation response. I have some features written in the middleware of /auth/user api for passport so I cannot make it as a separate function and call it internally to achieve this. I can achieve this by calling api endpoint using Axios, but I want to know if there is any better approach to achieve this. Appreciate any help here.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda