'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const prefix = '/api/htyd'; const index = 'xzqh'; const { router, controller } = app; // router.resources(index, `${prefix}/${index}`, controller[index]); // index、create、show、destroy // router.post(index, `${prefix}/${index}/update/:id`, controller[index].update); router.get(index, `${prefix}/${index}`, controller[index].index); // index、create、show、destroy };