Last active
June 22, 2019 05:35
-
-
Save haldarmahesh/22b67501a8518520d1f4ec532f1f681f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// REST implementation for getEmployeeById | |
router.get('/api/employees/:id', (req, res) => { | |
const employeeId = req.params.id; | |
return res.json(employeeService.getById(employeeId)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment