dashboard_route.js 477 B

1234567891011121314151617181920
  1. /**
  2. * 控制面板路由分发
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/6/2
  6. * @version
  7. */
  8. import Express from "express";
  9. import DashboardController from "../controllers/dashboard_controller"
  10. const router = Express.Router();
  11. let dashboardController = new DashboardController();
  12. module.exports =function (app) {
  13. // action定义区域
  14. router.get('/', dashboardController.auth, dashboardController.init, dashboardController.index);
  15. app.use("/dashboard", router);
  16. };