routes.js 577 B

123456789101112131415161718192021
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Zhong
  6. * @date 2018/5/29
  7. * @version
  8. */
  9. import express from 'express';
  10. import BillsGuideLibController from '../controllers/libController';
  11. const router = express.Router();
  12. const billsGuideLibController = new BillsGuideLibController();
  13. module.exports = function (app) {
  14. router.post('/getLibWithBills', billsGuideLibController.getLibWithBills);
  15. router.post('/getItemsByBills', billsGuideLibController.getItemsByBills);
  16. router.post('/getItemsByCode', billsGuideLibController.getItemsByCode);
  17. app.use('/billsGuidance/api', router);
  18. };