Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!