router.js 537 Bytes
/**
 * router of sub app guang
 * @author: hbomb<qiqi.zhou@yoho.cn>
 * @date: 2016/05/06
 */

'use strict';

const router = require('express').Router();
const cRoot = './controllers';
let API = require('../../library/api');
// Your controller here
router.get('/', function(req, res) {
    let api = new API();
    let name = '/productColor/queryProductColors';
    api.get(name, {}).then(function(body) {
        res.send(body);
    }).catch(function(error) {
        res.send('some thing wrong');
    });
});


module.exports = router;