'use strict'; const user = require('../../controllers/user'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/user/:userId/message'] = { content: '用户信息', visible: true }; router.get('/user/:userId/message', user.message); app.fs.api.logAttr['GET/user/accord'] = { content: '同步用户信息', visible: true }; router.put('/user/accord', user.accord); };