notify_route.js 448 B

12345678910111213141516171819
  1. /**
  2. * 通知相关路由
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/6/7
  6. * @version
  7. */
  8. import Express from "express";
  9. import NotifyController from "../controllers/notify_controller";
  10. const router = Express.Router();
  11. const notifyController = new NotifyController();
  12. module.exports =function (app) {
  13. // action定义区域
  14. router.get('/', notifyController.auth, notifyController.init, notifyController.index);
  15. app.use("/notify", router);
  16. };