Kaynağa Gözat

添加登录路由

liuyu 5 yıl önce
ebeveyn
işleme
61144c311d
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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);// 登录
 };