{"action":"created","issue":{"url":"https://api.github.com/repos/FAC10/week-7-LMAO/issues/74","repository_url":"https://api.github.com/repos/FAC10/week-7-LMAO","labels_url":"https://api.github.com/repos/FAC10/week-7-LMAO/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/FAC10/week-7-LMAO/issues/74/comments","events_url":"https://api.github.com/repos/FAC10/week-7-LMAO/issues/74/events","html_url":"https://github.com/FAC10/week-7-LMAO/issues/74","id":220166221,"number":74,"title":"Should you require 'index' rather than the routes folder?","user":{"login":"pbywater","id":20152018,"avatar_url":"https://avatars0.githubusercontent.com/u/20152018?v=3","gravatar_id":"","url":"https://api.github.com/users/pbywater","html_url":"https://github.com/pbywater","followers_url":"https://api.github.com/users/pbywater/followers","following_url":"https://api.github.com/users/pbywater/following{/other_user}","gists_url":"https://api.github.com/users/pbywater/gists{/gist_id}","starred_url":"https://api.github.com/users/pbywater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbywater/subscriptions","organizations_url":"https://api.github.com/users/pbywater/orgs","repos_url":"https://api.github.com/users/pbywater/repos","events_url":"https://api.github.com/users/pbywater/events{/privacy}","received_events_url":"https://api.github.com/users/pbywater/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-07T09:54:30Z","updated_at":"2017-04-07T10:02:13Z","closed_at":null,"body":"I'm a little confused that you export all your functions in index.js but import them with `const routes = require('./routes');` \r\n\r\nIs there a reason why you don't import the index.js file rather than the whole routes folder?"},"comment":{"url":"https://api.github.com/repos/FAC10/week-7-LMAO/issues/comments/292495762","html_url":"https://github.com/FAC10/week-7-LMAO/issues/74#issuecomment-292495762","issue_url":"https://api.github.com/repos/FAC10/week-7-LMAO/issues/74","id":292495762,"user":{"login":"oliverjam","id":9408641,"avatar_url":"https://avatars2.githubusercontent.com/u/9408641?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverjam","html_url":"https://github.com/oliverjam","followers_url":"https://api.github.com/users/oliverjam/followers","following_url":"https://api.github.com/users/oliverjam/following{/other_user}","gists_url":"https://api.github.com/users/oliverjam/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverjam/subscriptions","organizations_url":"https://api.github.com/users/oliverjam/orgs","repos_url":"https://api.github.com/users/oliverjam/repos","events_url":"https://api.github.com/users/oliverjam/events{/privacy}","received_events_url":"https://api.github.com/users/oliverjam/received_events","type":"User","site_admin":false},"created_at":"2017-04-07T10:02:13Z","updated_at":"2017-04-07T10:02:13Z","body":"`index.js` is treated as the 'main' file for a folder. If you import the folder name Node will look in index. This is how one of the workshops this week handled routers"}}
{"actor":{"display_login":"oliverjam"}}