app.put('/sounds',(req,res)=>{
var animal = req.body.animal;
//from this api call I want to call
//app.get('/:animalname',(req,res)=>{res.render('animal.ejs')})
})
I have already defined the app.get('/:animalname')
above this api call.
How do I do that? Thanks!