xzqh.js 487 B

12345678910111213
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const prefix = '/api/htyd';
  7. const index = 'xzqh';
  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. router.get(index, `${prefix}/${index}`, controller[index].index); // index、create、show、destroy
  12. };