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

189
Views
endpoint don't work, doesn't return anything

¿can you help me to understand this?

If I have an endpoint in a specific route it will display in the browser the expected content, but with the same code just modifying the endpoint it doesn't return anything. The only change that I do is the route of the endpoint, the rest of code is the same in both cases.

¿Why this happen?

The code displays in the browser the content of a json file:

this way it doesn't work: It doesn't show an error, just don't return anything.

localhost:3000/v1/people/partner

 app.get("/v1/people/partner", (req, res) => {
        const peopleInVisual = PeopleController.getAllVisualPeople();
        res.json({ peopleInVisual });
});

In this way it works fine: notice I just have changed the hello at the endpoint

localhost:3000/v1/hello/partner

app.get("/v1/hello/partner", (req, res) => {
    const PeopleInVisual = PeopleController.getAllVisualPeople();
    res.json({ PeopleInVisual });
});

Thanks!

over 4 years ago · Santiago Trujillo
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!