router.js
526 Bytes
/**
* router of sub app guang
* @author: hbomb<qiqi.zhou@yoho.cn>
* @date: 2016/05/06
*/
'use strict';
let API = require('../../library/api');
// Your controller here
let router = function(app) {
app.get('/', function(req, res) {
let api = new API();
let name = '/productColor/queryProductColors';
api.get(name, {}).then(function(body) {
res.send(body);
}).catch(function() {
res.send('something wrong');
});
});
};
module.exports = router;