'use strict'; const auth = require('../../controllers/auth'); module.exports = function (app, router, opts) { /** * @api {Post} login 登录. * @apiVersion 1.0.0 * @apiGroup Auth */ app.fs.api.logAttr['POST/login'] = { content: '登录', visible: true }; router.post('/login', auth.login); app.fs.api.logAttr['POST/logout'] = { content: '登出', visible: false }; router.post('/logout', auth.logout); // 安心云 app.fs.api.logAttr['POST/login/axy'] = { content: '安心云登录信息同步', visible: true }; router.post('/login/axy', auth.loginAxy); app.fs.api.logAttr['PUT/logout/axy'] = { content: '安心云登出信息同步', visible: false }; router.put('/logout/axy', auth.logout); // app.fs.api.logAttr['POST/cross_token/check'] = { content: '登录信息鉴权信息检测', visible: true }; router.post('/cross_token/check', auth.checkCrossToken); };