{"size": 572, "ext": "js", "max_stars_repo_path": "nodeui/src/controller/index.js", "max_stars_repo_name": "articlefighter/ArticalCatcher", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "nodeui/src/controller/index.js", "max_issues_repo_name": "articlefighter/ArticalCatcher", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "nodeui/src/controller/index.js", "max_forks_repo_name": "articlefighter/ArticalCatcher", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.0666666667, "max_line_length": 61, "alphanum_fraction": 0.6433566434}
/** 
 * miaoxiongtao@made-in-china.com
 * 
 * TODO:
 * [ ] 先适应 segmentfault ， jianshu等后续在做
 * [ ] infoq 国外网站支持（utilService）
 * 
 * [ ] 提取 service ， 简化 controller 中的处理函数
 * [ ] segmentfault 部分图片（data-src） 需要请求 segmentfault 域名获取图片地址
*/

const Router = require('koa-router');
const IndexController = require('./indexController');
const router = new Router();




router
    .get('/getArticle', IndexController.get())
    .get('/test', IndexController.test());

const controller = {
    init: app => {
        app.use(router.routes());
    },
};

module.exports = controller;
