Created
January 5, 2018 11:15
-
-
Save slmanju/d00c7da18cd1f094763d205fc8d3a17b 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
| var EmployeeController = {}; | |
| EmployeeController.list = function(req, res) { | |
| res.send('find all'); | |
| }; | |
| EmployeeController.findById = function(req, res) { | |
| res.send('find by id'); | |
| }; | |
| EmployeeController.create = function(req, res) { | |
| res.send('render create form'); | |
| }; | |
| EmployeeController.save = function(req, res) { | |
| res.send('save new employee'); | |
| }; | |
| EmployeeController.edit = function(req, res) { | |
| res.send('render edit form'); | |
| }; | |
| EmployeeController.update = function(req, res) { | |
| res.send('update employee'); | |
| }; | |
| EmployeeController.delete = function(req, res) { | |
| res.send('delete employee'); | |
| }; | |
| module.exports = EmployeeController; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment