setting.js 335 B

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