router.js
690 Bytes
/**
* router of guang
* @author: lcy<chuanyang.liu@yoho.cn>
* @date: 2016/08/31
*/
'use strict';
const router = require('express').Router(); // eslint-disable-line
const cRoot = './controllers';
const guangController = require(`${cRoot}/index`);
router.get('/', guangController.index);
router.get('/detail/:id', guangController.detail);
router.get('/tags/index', guangController.tags);
router.get('/Index/editor', guangController.editor);
// ajax
// router.get('/getbrandFloorDataAjax', guangController.getbrandFloorDataAjax);
// router.post('/common/getNewArrival', guangController.getNewArrival);
// router.get('/guide', guangController.getIndexGuide);
module.exports = router;