personnel.js 405 B

1234567891011
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const prefix = '/api/servicezhwl';
  7. const index = 'personnel';
  8. const { router, controller } = app;
  9. router.resources('driver', `${prefix}/driver`, controller[index].driver); // index、create、show、destroy
  10. router.post('driver', `${prefix}/driver/update/:id`, controller[index].driver.update);
  11. };