'use strict'; module.exports = app => { const { router, controller } = app; const profix = '/api/live/'; const vision = 'v0'; const index = 'dock'; const target = 'roadShow'; 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); };