{"action":"closed","issue":{"url":"https://api.github.com/repos/alexmingoia/koa-router/issues/471","repository_url":"https://api.github.com/repos/alexmingoia/koa-router","labels_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/471/comments","events_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/471/events","html_url":"https://github.com/alexmingoia/koa-router/issues/471","id":345642352,"node_id":"MDU6SXNzdWUzNDU2NDIzNTI=","number":471,"title":"I want to put it in the module file，but it return undefined;","user":{"login":"Tokyo-Lei","id":7269988,"node_id":"MDQ6VXNlcjcyNjk5ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/7269988?v=4","gravatar_id":"","url":"https://api.github.com/users/Tokyo-Lei","html_url":"https://github.com/Tokyo-Lei","followers_url":"https://api.github.com/users/Tokyo-Lei/followers","following_url":"https://api.github.com/users/Tokyo-Lei/following{/other_user}","gists_url":"https://api.github.com/users/Tokyo-Lei/gists{/gist_id}","starred_url":"https://api.github.com/users/Tokyo-Lei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tokyo-Lei/subscriptions","organizations_url":"https://api.github.com/users/Tokyo-Lei/orgs","repos_url":"https://api.github.com/users/Tokyo-Lei/repos","events_url":"https://api.github.com/users/Tokyo-Lei/events{/privacy}","received_events_url":"https://api.github.com/users/Tokyo-Lei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-30T07:30:51Z","updated_at":"2018-08-12T13:34:34Z","closed_at":"2018-08-12T13:34:34Z","author_association":"NONE","body":"/module/Router.js  \r\n\r\n```javascript\r\n const koa_router = require('koa-router');\r\n const router = new koa_router();\r\n\r\nmodule.exports= function() {\r\n\r\n   router.get('/', (ctx, next) => {\r\n\t\tctx.render('/home/index');\r\n   });\r\n\r\n};\r\n```\r\n\r\n/app.js \r\n```javascript\r\nconst Koa = require('koa'),\r\n      path = require('path'),\r\n      koa_router = require('koa-router'),\r\n      render = require('koa-art-template'),\r\n      k_router = require('/module/Router'),\r\n      app = new Koa(),\r\n      router = new koa_router();\r\n\r\n     k_router();  \r\n     console.log(k_router()); //undefined   Not Found\r\n\r\n```\r\n\r\nwhat?"}}
{"actor":{"display_login":"jbielick"}}