dock_user.js 660 B

1234567891011121314
  1. 'use strict';
  2. module.exports = app => {
  3. const { router, controller } = app;
  4. const profix = '/api/live/';
  5. const vision = 'v0';
  6. const index = 'dock';
  7. const target = 'dockUser';
  8. router.post(target, `${profix}${vision}/${index}/${target}/goodCheck/:id`, controller[index][target].goodCheck);
  9. router.post(target, `${profix}${vision}/${index}/${target}/userCheck/:id`, controller[index][target].userCheck);
  10. router.resources(target, `${profix}${vision}/${index}/${target}`, controller[index][target]); // index、create、show、destroy
  11. router.post(target, `${profix}${vision}/${index}/${target}/update/:id`, controller[index][target].update);
  12. };