group_routes.js 583 B

1234567891011121314151617181920212223242526272829
  1. const person_ctrl = require('../controllers/group_ctrl');
  2. module.exports = [
  3. {
  4. url:'/group',
  5. method: 'get',
  6. func: person_ctrl.get_all
  7. },
  8. {
  9. url:'/group',
  10. method: 'post',
  11. func: person_ctrl.create
  12. },
  13. {
  14. url:'/group/:group_id',
  15. method: 'get',
  16. func: person_ctrl.get_by_id
  17. },
  18. {
  19. url:'/group/:group_id',
  20. method: 'put',
  21. func: person_ctrl.update_by_id
  22. },
  23. {
  24. url:'/group/:group_id',
  25. method: 'delete',
  26. func: person_ctrl.delete_by_id
  27. }
  28. ]