cashing.js 539 B

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