Parcourir la source

添加登录路由

liuyu il y a 5 ans
Parent
commit
61144c311d
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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);// 登录
 };