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

120
Views
How to Change API url in every 10 days

I want to change API url in every 10 days for ex - url is http://localhost3000/api/invoice/1-2-22 and starting date is 1 Feb 2022 then after 10 days change url like this http://localhost3000/api/invoice/11-2-22 Then date start from 11 Feb 2022 and change url after 10 day url like this http://localhost3000/api/invoice/21-2-22

Using JavaScript (NodeJS)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use URL Parameters to add the date as a URL Segment, and in the handler you can validate the date and if it's invalid you can return a 404 response.

app.get('/hello/:date', (req,res) = >{
    //access date using req.params.date
    //validate date here and return response accordingly 
});
about 4 years ago · Juan Pablo Isaza Report
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!