You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
577 B
12 lines
577 B
'use strict';
|
|
|
|
const auth = require('../controllers/auth');
|
|
|
|
module.exports = function (app, router, conf) {
|
|
const { middlewares: { auth: authenticator } } = app
|
|
|
|
router.post('/login', auth.login, { content: '登录', visible: true });
|
|
router.put('/logout', authenticator, auth.logout, { content: '登出', visible: false });
|
|
router.put('/refresh-token', authenticator, auth.refreshToken, { content: '刷新token', visible: false });
|
|
router.get('/pep-user-info', auth.getPepUserInfoByToken, { content: '根据项企token获取用户信息', visible: true });
|
|
};
|
|
|