tache.js 396 B

1234567891011121314151617181920212223242526
  1. const tache_ctrl = require('../controllers/tache');
  2. module.exports = [
  3. {
  4. url: '/tache',
  5. method: 'get',
  6. func: [ tache_ctrl.get_all ]
  7. },
  8. {
  9. url: '/tache',
  10. method: 'post',
  11. func: [ tache_ctrl.create ]
  12. },
  13. {
  14. url: '/tache/:tache_id',
  15. method: 'get',
  16. func: [ tache_ctrl.get_by_id ]
  17. },
  18. {
  19. url: '/tache/:tache_id',
  20. method: 'delete',
  21. func: [ tache_ctrl.delete_by_id ]
  22. }
  23. ];