daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var express = require('express');
  2. var router = express.Router();
  3. var employee = require("../controllers/employee-controller");
  4.  
  5. // Get all employees
  6. router.get('/', employee.list);
  7.  
  8. // Get single employee by id
  9. router.get('/show/:id', employee.findById);
  10.  
  11. // Create employee
  12. router.get('/create', employee.create);
  13.  
  14. // Save employee
  15. router.post('/save', employee.save);
  16.  
  17. // Edit employee
  18. router.get('/edit/:id', employee.edit);
  19.  
  20. // Edit update
  21. router.post('/update/:id', employee.update);
  22.  
  23. // Edit update
  24. router.post('/delete/:id', employee.delete);
  25.  
  26. module.exports = router;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top