router.js
628 Bytes
/**
* router of sub app brands
* @author: ghw<hongwei.gao@yoho.cn>
* @date: 2016/09/29
*/
'use strict';
const express = require('express');
const cRoot = './controllers';
const router = express.Router(); // eslint-disable-line
const brandsController = require(`${cRoot}/brands`);
// 品牌一览
router.get('', brandsController.index);
// 悬浮出现品牌信息
router.get('/brandinfo', brandsController.brandInfo);
// 品牌没有加载完全,继续加载
router.post('/brandList', brandsController.brandList);
// brands/plusstar
router.get('/plusstar', brandsController.plusstarList);
module.exports = router;