{"action":"created","issue":{"url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/470","labels_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/470/comments","events_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/470/events","html_url":"https://github.com/davezuko/react-redux-starter-kit/issues/470","id":127112558,"number":470,"title":"How to use koa as API","user":{"login":"Hnus-","id":3451622,"avatar_url":"https://avatars.githubusercontent.com/u/3451622?v=3","gravatar_id":"","url":"https://api.github.com/users/Hnus-","html_url":"https://github.com/Hnus-","followers_url":"https://api.github.com/users/Hnus-/followers","following_url":"https://api.github.com/users/Hnus-/following{/other_user}","gists_url":"https://api.github.com/users/Hnus-/gists{/gist_id}","starred_url":"https://api.github.com/users/Hnus-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hnus-/subscriptions","organizations_url":"https://api.github.com/users/Hnus-/orgs","repos_url":"https://api.github.com/users/Hnus-/repos","events_url":"https://api.github.com/users/Hnus-/events{/privacy}","received_events_url":"https://api.github.com/users/Hnus-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-17T18:06:08Z","updated_at":"2016-01-17T19:58:26Z","closed_at":"2016-01-17T19:58:26Z","body":"> The Koa server that comes with the starter kit is able to be extended to serve as an API\r\n\r\nPlease can you show me how? I am using `koa-route` and I would like to know where to put my routes so I can call them from client. I can't get hot-reloading and api to work together only one of them at a time.\r\n\r\nCould you demonstrate it on this simple route please?\r\n\r\n`app.use(route.get('/api/hello', function *() { this.body = 'hello' }))`"},"comment":{"url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/comments/172371867","html_url":"https://github.com/davezuko/react-redux-starter-kit/issues/470#issuecomment-172371867","issue_url":"https://api.github.com/repos/davezuko/react-redux-starter-kit/issues/470","id":172371867,"user":{"login":"Hnus-","id":3451622,"avatar_url":"https://avatars.githubusercontent.com/u/3451622?v=3","gravatar_id":"","url":"https://api.github.com/users/Hnus-","html_url":"https://github.com/Hnus-","followers_url":"https://api.github.com/users/Hnus-/followers","following_url":"https://api.github.com/users/Hnus-/following{/other_user}","gists_url":"https://api.github.com/users/Hnus-/gists{/gist_id}","starred_url":"https://api.github.com/users/Hnus-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hnus-/subscriptions","organizations_url":"https://api.github.com/users/Hnus-/orgs","repos_url":"https://api.github.com/users/Hnus-/repos","events_url":"https://api.github.com/users/Hnus-/events{/privacy}","received_events_url":"https://api.github.com/users/Hnus-/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T19:58:26Z","updated_at":"2016-01-17T19:58:26Z","body":"I haven't expected such a fast response. Amazing! Thank you very much"}}