Skip to content

Commit

Permalink
Added post call for new employee
Browse files Browse the repository at this point in the history
  • Loading branch information
SomnathMore committed Oct 11, 2018
1 parent 187d468 commit b271217
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions EmployeeDB/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,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({
Expand Down

0 comments on commit b271217

Please sign in to comment.