12345678910 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- const prefix = '/api/role/auth';
- router.post(`${prefix}/login`, controller.user.login.login);
- router.post(`${prefix}/token`, controller.user.login.token);
- };
|