I'm trying to delete something from my database but it doesn't work, showing me this message: Cannot DELETE /farms/6007e29902cfe3130c768827

后端 未结 0 1890
情话喂你
情话喂你 2021-01-20 15:43

Here\'s the code:

app.delete("farms/:id", async (req, res) => {
    const farm = await Farm.findByIdAndDelete(req.params.id);
    res.redirect(&q         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题