소스 검색

添加登录路由

liuyu 5 년 전
부모
커밋
61144c311d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/router.js

+ 3 - 0
app/router.js

@@ -138,4 +138,7 @@ module.exports = app => {
 
   // 微信端访问地址
   router.get('/api/train/auth', controller.weixin.auth); // 微信登录
+
+  // pc端登录
+  router.post('/api/train/login', controller.login.login);// 登录
 };