examine.js 411 B

1234567891011
  1. 'use strict';
  2. module.exports = app => {
  3. const { router, controller } = app;
  4. const profix = '/api/hc/';
  5. const target = 'examine';
  6. router.post(target, `${profix}${target}/getGoods`, controller[target].getGoods);
  7. router.resources(target, `${profix}${target}`, controller[target]); // index、create、show、destroy
  8. router.post(target, `${profix}${target}/update/:id`, controller[target].update);
  9. };