{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/kue/issues/792","labels_url":"https://api.github.com/repos/Automattic/kue/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/kue/issues/792/comments","events_url":"https://api.github.com/repos/Automattic/kue/issues/792/events","html_url":"https://github.com/Automattic/kue/pull/792","id":124417724,"number":792,"title":"start using autoroute to clean up routes","user":{"login":"mansona","id":594890,"avatar_url":"https://avatars.githubusercontent.com/u/594890?v=3","gravatar_id":"","url":"https://api.github.com/users/mansona","html_url":"https://github.com/mansona","followers_url":"https://api.github.com/users/mansona/followers","following_url":"https://api.github.com/users/mansona/following{/other_user}","gists_url":"https://api.github.com/users/mansona/gists{/gist_id}","starred_url":"https://api.github.com/users/mansona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mansona/subscriptions","organizations_url":"https://api.github.com/users/mansona/orgs","repos_url":"https://api.github.com/users/mansona/repos","events_url":"https://api.github.com/users/mansona/events{/privacy}","received_events_url":"https://api.github.com/users/mansona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-31T00:30:44Z","updated_at":"2016-01-01T14:56:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/kue/pulls/792","html_url":"https://github.com/Automattic/kue/pull/792","diff_url":"https://github.com/Automattic/kue/pull/792.diff","patch_url":"https://github.com/Automattic/kue/pull/792.patch"},"body":"I'm just about to create a new PR to add a new route (or extend an existing route) and I wanted to make it easier for other users to extend routes in the future by cleaning up the file that defines the API routes using https://github.com/stonecircle/express-autoroute\r\n\r\nThe intention would be to split the https://github.com/Automattic/kue/blob/master/lib/http/routes/json.js file into the corresponding route files but I didn't want to go further into this implementation without running it by you. \r\n\r\nLet me know if you want to discuss it any further or if you have any questions."},"comment":{"url":"https://api.github.com/repos/Automattic/kue/issues/comments/168312005","html_url":"https://github.com/Automattic/kue/pull/792#issuecomment-168312005","issue_url":"https://api.github.com/repos/Automattic/kue/issues/792","id":168312005,"user":{"login":"behrad","id":2151889,"avatar_url":"https://avatars.githubusercontent.com/u/2151889?v=3","gravatar_id":"","url":"https://api.github.com/users/behrad","html_url":"https://github.com/behrad","followers_url":"https://api.github.com/users/behrad/followers","following_url":"https://api.github.com/users/behrad/following{/other_user}","gists_url":"https://api.github.com/users/behrad/gists{/gist_id}","starred_url":"https://api.github.com/users/behrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behrad/subscriptions","organizations_url":"https://api.github.com/users/behrad/orgs","repos_url":"https://api.github.com/users/behrad/repos","events_url":"https://api.github.com/users/behrad/events{/privacy}","received_events_url":"https://api.github.com/users/behrad/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T14:56:19Z","updated_at":"2016-01-01T14:56:19Z","body":"Looks cleaner @mansona Thank you.\r\nI hadn't heart about `autoroute`, is it a mature, active project?\r\nCan you convince me on the value of this PR to add such dependency?"}}