| 1234567891011121314151617181920212223242526 |
- const tache_ctrl = require('../controllers/tache');
- module.exports = [
-
- {
- url: '/tache',
- method: 'get',
- func: [ tache_ctrl.get_all ]
- },
- {
- url: '/tache',
- method: 'post',
- func: [ tache_ctrl.create ]
- },
- {
- url: '/tache/:tache_id',
- method: 'get',
- func: [ tache_ctrl.get_by_id ]
- },
- {
- url: '/tache/:tache_id',
- method: 'delete',
- func: [ tache_ctrl.delete_by_id ]
- }
-
- ];
|