Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get('/todo/:id', async (req, res) => {
- console.log(req.params)
- let id = req.params.id
- let result = await queries.findOne('todo', {"_id": ObjectID(id)})
- res.json(result)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement