瀏覽代碼

添加登录路由

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);// 登录
 };