how to get images from mongo with axios and display them with react

前端 未结 0 1225
一向
一向 2020-12-29 20:48

The server route:

router.get(\'/images\', async (req, res) => {
const image = await Image.findOne({})

res.json(image)
})

Axios:

         


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