router.js 374 B

123456789101112
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. // 企业信息表设置
  8. router.resources('company', '/api/servicetest/company', controller.company); // index、create、show、destroy
  9. router.post('company', '/api/servicetest/company/update/:id', controller.company.update);
  10. };