Created
January 10, 2021 00:08
-
-
Save pedropbazzo/dae2939d30e8c14d4e644a40fa01768b to your computer and use it in GitHub Desktop.
Node JS Controller Car
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const carsService = require('../services/cars.service'); | |
const get = function(req, res){ | |
res.send(carsService.get(req.params._id)) | |
} | |
const getAll = function(req, res){ | |
res.send(carsService.getAll()) | |
} | |
module.exports = { | |
get, | |
getAll | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment