Skip to content

Commit

Permalink
métood para #27
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelfdez99 committed Jan 14, 2021
1 parent 4e8d5d6 commit e6142af
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/accessory.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
let Accessory = require('./models/accessorySchema')

function getAccessories(req,res){
let accessory = Accessory.find({}).exec(function(err,item){
if(!err){
res.status(200).json(accessory)
}else{
res.send(err)
}
})
}


module.exports = {getAccessories}

0 comments on commit e6142af

Please sign in to comment.