sms_route.js 519 B

12345678910111213141516171819202122
  1. /**
  2. * 短信相关路由
  3. *
  4. * @author EllisRan
  5. * @date 2018/4/17
  6. * @version
  7. */
  8. const Express = require("express");
  9. const SmsController = require("../controllers/sms_controller");
  10. module.exports = function (app) {
  11. const router = Express.Router();
  12. const smsController = new SmsController();
  13. // action定义区域
  14. router.post('/code', smsController.code);
  15. router.post('/mobile', smsController.setMobile);
  16. router.post('/check/mobile', smsController.checkMobile);
  17. app.use('/sms',router);
  18. };