router.js 359 Bytes
/**
 * 短信验证登录路由
 * @author: leo <qi.li@yoho.cn>
 * @date: 2017/06/26
 */

'use strict';

const express = require('express');
const sms = require('./controllers/sms');

const router = express.Router(); // eslint-disable-line

// SMS 短信
router.post('/sms/login', sms.login);
router.post('/sms/sendCode', sms.send);

module.exports = router;