'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; router.get('/', controller.home.index); router.resources('optlog', '/api/logs', controller.optlog); // index、create、show、destroy };