Back End Development and APIs Projects - Timestamp Microservice

just one case remaining please help me for me /{d,5}/ is not working please

app.get(“/api/:date/”,function(req,res){

let timestamp=req.params.date;
if(!timestamp.match(/{d,5}/)){
timestamp=+timestamp
}

let date= new Date(timestamp);
if(date.toGMTString()===“Invalid Date”){
res.json({error:date.toGMTString()})
}
res.json({unix:date.valueOf(),utc:date.toGMTString(timestamp)})
})
app.get(“/api/”,function(req,res){

let date = new Date();

res.json({unix:date.valueOf(),utc:date.toGMTString()})
})

// listen for requests :slight_smile:
var listener = app.listen(process.env.PORT, function () {
console.log('Your app is listening on port ’ + listener.address().port);
});

Describe your issue in detail here.

Your project link(s)

solution: boilerplate-project-timestamp (1) - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35

Challenge: Back End Development and APIs Projects - Timestamp Microservice

Link to the challenge: