credit.js 334 B

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