| 12345678910111213141516171819202122232425262728293031323334353637 | 'use strict';/** * * * @author Zhong * @date 2018/5/29 * @version */import express from 'express';import BillsGuideLibController from '../controllers/libController';import ViewsController from '../controllers/viewController';const router = express.Router();const billsGuideLibController = new BillsGuideLibController();const viewsController = new ViewsController();module.exports = function (app) {    app.get('/billsGuidance/main', viewsController.auth, viewsController.init, viewsController.redirectMain);    app.get('/billsGuidance/guidance', viewsController.auth, viewsController.init, viewsController.redirectGuidance);    router.post('/getComBillsLibInfo', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.getComBillsLibInfo);    router.post('/getBillsGuideLibs', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.getBillsGuideLibs);    router.post('/updateBillsGuideLib', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.updateBillsGuideLib);    router.post('/getLibWithBills', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.getLibWithBills);    router.post('/getItemsByBills', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.getItemsByBills);    router.post('/getItemsByBillIDs', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.getItemsByBillIDs);    router.post('/updateItems', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.updateItems);    router.post('/getBillMaterials', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.getBillMaterials);    router.post('/editBillMaterials', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.editBillMaterials);    router.post('/generateClassData', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.generateClassData);    router.post('/autoSetMaterial', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.autoSetMaterial);    router.get('/exportClassExcel', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.exportClassExcel);    //test    //router.post('/testItems', billsGuideLibController.auth, billsGuideLibController.init, billsGuideLibController.testItems);    app.use('/billsGuidance/api', router);};
 |