{"action":"created","issue":{"url":"https://api.github.com/repos/liyang31tg/mengBaseKoa/issues/1","repository_url":"https://api.github.com/repos/liyang31tg/mengBaseKoa","labels_url":"https://api.github.com/repos/liyang31tg/mengBaseKoa/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/liyang31tg/mengBaseKoa/issues/1/comments","events_url":"https://api.github.com/repos/liyang31tg/mengBaseKoa/issues/1/events","html_url":"https://github.com/liyang31tg/mengBaseKoa/issues/1","id":130290052,"number":1,"title":"哥们以前写java的吧？","user":{"login":"hacke2","id":6399899,"avatar_url":"https://avatars.githubusercontent.com/u/6399899?v=3","gravatar_id":"","url":"https://api.github.com/users/hacke2","html_url":"https://github.com/hacke2","followers_url":"https://api.github.com/users/hacke2/followers","following_url":"https://api.github.com/users/hacke2/following{/other_user}","gists_url":"https://api.github.com/users/hacke2/gists{/gist_id}","starred_url":"https://api.github.com/users/hacke2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacke2/subscriptions","organizations_url":"https://api.github.com/users/hacke2/orgs","repos_url":"https://api.github.com/users/hacke2/repos","events_url":"https://api.github.com/users/hacke2/events{/privacy}","received_events_url":"https://api.github.com/users/hacke2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-01T08:17:50Z","updated_at":"2016-02-18T06:02:36Z","closed_at":null,"body":"我看到结构与分层和struts2 挺像，是不是以前写java的？\r\n\r\n看到几个问题可以修复一下：\r\n\r\n1. 应该添加.gitignore, .idea、node_modules不应该存在于项目之中\r\n2. 控制器里对外接口最好直接是exports.xxx，而不是module.exports.xxx。module.exports应该直接赋值一个对象， 比如 module.exports = {}，一个文件最好出现一次\r\n3. 路由应该单独拉出一个文件，通过参数传递app\r\n4. 最好是一个npm项目，缺少package.json，还有缺一个readme.md\r\n"},"comment":{"url":"https://api.github.com/repos/liyang31tg/mengBaseKoa/issues/comments/185557496","html_url":"https://github.com/liyang31tg/mengBaseKoa/issues/1#issuecomment-185557496","issue_url":"https://api.github.com/repos/liyang31tg/mengBaseKoa/issues/1","id":185557496,"user":{"login":"hacke2","id":6399899,"avatar_url":"https://avatars.githubusercontent.com/u/6399899?v=3","gravatar_id":"","url":"https://api.github.com/users/hacke2","html_url":"https://github.com/hacke2","followers_url":"https://api.github.com/users/hacke2/followers","following_url":"https://api.github.com/users/hacke2/following{/other_user}","gists_url":"https://api.github.com/users/hacke2/gists{/gist_id}","starred_url":"https://api.github.com/users/hacke2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacke2/subscriptions","organizations_url":"https://api.github.com/users/hacke2/orgs","repos_url":"https://api.github.com/users/hacke2/repos","events_url":"https://api.github.com/users/hacke2/events{/privacy}","received_events_url":"https://api.github.com/users/hacke2/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T06:02:36Z","updated_at":"2016-02-18T06:02:36Z","body":"。。我也是刚学"}}