boot_route.js 437 B

123456789101112131415161718
  1. /**
  2. * 控制面板相关路由分发
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/6/12
  6. * @version
  7. */
  8. const express = require("express");
  9. const BootController = require("../controllers/boot_controller");
  10. module.exports=function (app){
  11. let router = express.Router();
  12. let bootController = new BootController();
  13. // 引导页面
  14. router.get('/:compilation', bootController.init, bootController.boot);
  15. app.use('/boot', router);
  16. };