|
@@ -7,18 +7,9 @@ module.exports = function (app, db) {
|
|
|
if (err) {
|
|
|
res.send({ error: "An error" });
|
|
|
} else {
|
|
|
- console.log(item, "item");
|
|
|
res.send(item);
|
|
|
}
|
|
|
});
|
|
|
- // db.collection('test').findOne(details,(err,item)=>{
|
|
|
- // if(err){
|
|
|
- // res.send({"error":"An error"})
|
|
|
- // }else{
|
|
|
- // console.log(item,'item');
|
|
|
- // res.send(item)
|
|
|
- // }
|
|
|
- // })
|
|
|
});
|
|
|
app.post("/notes", (req, res) => {
|
|
|
const note = {
|