router.js
429 Bytes
/**
* 短信验证登录路由
* @author: leo <qi.li@yoho.cn>
* @date: 2017/06/26
*/
'use strict';
const express = require('express');
const sms = require('./controllers/sms');
const user = require('./controllers/user');
const router = express.Router(); // eslint-disable-line
// SMS 短信
router.post('/sms/sendCode', sms.sendCode);
router.post('/sms/checkCode', sms.checkCode, user.userInfo);
module.exports = router;