12345678910111213 |
- 'use strict';
- module.exports = app => {
- const { router, controller } = app;
- const profix = '/api/live/';
- const vision = 'v0';
- const index = 'cysci';
- const target = 'cashing';
- router.get(target, `${profix}${vision}/${index}/${target}/from/:from_id`, controller[index][target].from);
- router.resources(target, `${profix}${vision}/${index}/${target}`, controller[index][target]); // index、create、show、destroy
- router.post(target, `${profix}${vision}/${index}/${target}/update/:id`, controller[index][target].update);
- };
|