Authored by 徐炜

路由修改

@@ -10,9 +10,12 @@ const router = require('express').Router(); // eslint-disable-line @@ -10,9 +10,12 @@ const router = require('express').Router(); // eslint-disable-line
10 const cRoot = './controllers'; 10 const cRoot = './controllers';
11 11
12 const ads = require(`${cRoot}/ads`); // 第三方广告平台对接 12 const ads = require(`${cRoot}/ads`); // 第三方广告平台对接
  13 +const secretSwitch = require(`${cRoot}/secret-switch`);
13 14
14 // Your controller here 15 // Your controller here
15 16
16 router.get('/ads', ads.jump); 17 router.get('/ads', ads.jump);
17 18
  19 +router.get('/secret-switch', secretSwitch.index); // 设置cache
  20 +
18 module.exports = router; 21 module.exports = router;
@@ -13,7 +13,6 @@ var multipart = require('connect-multiparty'); @@ -13,7 +13,6 @@ var multipart = require('connect-multiparty');
13 var multipartMiddleware = multipart(); 13 var multipartMiddleware = multipart();
14 14
15 const rvCtrl = require(`${cRoot}/recent-view`); 15 const rvCtrl = require(`${cRoot}/recent-view`);
16 -const cache = require(`${cRoot}/secret-switch`);  
17 const uploadCtrl = require(`${cRoot}/upload`); 16 const uploadCtrl = require(`${cRoot}/upload`);
18 const erp2goods = require(`${cRoot}/erp2goods`); 17 const erp2goods = require(`${cRoot}/erp2goods`);
19 const getBanner = require(`${cRoot}/getBanner`); 18 const getBanner = require(`${cRoot}/getBanner`);
@@ -25,8 +24,6 @@ router.post('/upload/image', multipartMiddleware, uploadCtrl.uploadImg); @@ -25,8 +24,6 @@ router.post('/upload/image', multipartMiddleware, uploadCtrl.uploadImg);
25 24
26 router.get('/erp2goods', erp2goods.find); 25 router.get('/erp2goods', erp2goods.find);
27 26
28 -router.get('/secret-switch', cache.index); // 设置cache  
29 -  
30 router.get('/getbanner', getBanner.index); 27 router.get('/getbanner', getBanner.index);
31 28
32 router.get('/passport', passport.index); 29 router.get('/passport', passport.index);