router.js 377 Bytes
/**
 * router of sub app index
 * @author: yyqing<yanqing.yang@yoho.cn>
 * @date: 2016/05/03
 */

'use strict';

const express = require('express');
const router = express.Router(); // eslint-disable-line
const cRoot = './controllers';

const homeController = require(`${cRoot}/index`);

// Your controller here
router.get('/', homeController.index);

module.exports = router;