cash.js 377 B

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