[Solved] How to Change API url in every 10 days


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 
});

solved How to Change API url in every 10 days