diff --git a/EmployeeDB/app.js b/EmployeeDB/app.js index 21d2db6e..1ed5c41c 100644 --- a/EmployeeDB/app.js +++ b/EmployeeDB/app.js @@ -85,6 +85,14 @@ app.get('/employee/new', function(req, res) { }); }); + +//new employee with post +app.post('/employee/new', function(req, res) { + res.render('employee_new', { + title: 'New Employee' + }); +}); + //save new employee app.post('/employee/new', function(req, res){ employeeProvider.save({