const contactController= require('../controller/contact.controller') const router= require('express').Router() //getAll : router.route('/').get(contactController.getAll) //getById : router.route('/:id').get(contactController.getById) //getOne : router.route('/lastname/:lastname').get(contactController.getOne) //create : router.route('/').post(contactController.create) //update : router.route('/:id').put(contactController.update) //delete : router.route('/:id').delete(contactController.delete) module.exports=router;