transport.js 418 B

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