{"action":"closed","issue":{"url":"https://api.github.com/repos/postlight/lux/issues/256","repository_url":"https://api.github.com/repos/postlight/lux","labels_url":"https://api.github.com/repos/postlight/lux/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/postlight/lux/issues/256/comments","events_url":"https://api.github.com/repos/postlight/lux/issues/256/events","html_url":"https://github.com/postlight/lux/issues/256","id":169151916,"number":256,"title":"Add the Ability to Generate Middleware Functions","user":{"login":"zacharygolba","id":7378772,"avatar_url":"https://avatars.githubusercontent.com/u/7378772?v=3","gravatar_id":"","url":"https://api.github.com/users/zacharygolba","html_url":"https://github.com/zacharygolba","followers_url":"https://api.github.com/users/zacharygolba/followers","following_url":"https://api.github.com/users/zacharygolba/following{/other_user}","gists_url":"https://api.github.com/users/zacharygolba/gists{/gist_id}","starred_url":"https://api.github.com/users/zacharygolba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacharygolba/subscriptions","organizations_url":"https://api.github.com/users/zacharygolba/orgs","repos_url":"https://api.github.com/users/zacharygolba/repos","events_url":"https://api.github.com/users/zacharygolba/events{/privacy}","received_events_url":"https://api.github.com/users/zacharygolba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/postlight/lux/labels/feature","name":"feature","color":"1d76db"}],"state":"closed","locked":false,"assignee":{"login":"adampash","id":64131,"avatar_url":"https://avatars.githubusercontent.com/u/64131?v=3","gravatar_id":"","url":"https://api.github.com/users/adampash","html_url":"https://github.com/adampash","followers_url":"https://api.github.com/users/adampash/followers","following_url":"https://api.github.com/users/adampash/following{/other_user}","gists_url":"https://api.github.com/users/adampash/gists{/gist_id}","starred_url":"https://api.github.com/users/adampash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adampash/subscriptions","organizations_url":"https://api.github.com/users/adampash/orgs","repos_url":"https://api.github.com/users/adampash/repos","events_url":"https://api.github.com/users/adampash/events{/privacy}","received_events_url":"https://api.github.com/users/adampash/received_events","type":"User","site_admin":false},"assignees":[{"login":"adampash","id":64131,"avatar_url":"https://avatars.githubusercontent.com/u/64131?v=3","gravatar_id":"","url":"https://api.github.com/users/adampash","html_url":"https://github.com/adampash","followers_url":"https://api.github.com/users/adampash/followers","following_url":"https://api.github.com/users/adampash/following{/other_user}","gists_url":"https://api.github.com/users/adampash/gists{/gist_id}","starred_url":"https://api.github.com/users/adampash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adampash/subscriptions","organizations_url":"https://api.github.com/users/adampash/orgs","repos_url":"https://api.github.com/users/adampash/repos","events_url":"https://api.github.com/users/adampash/events{/privacy}","received_events_url":"https://api.github.com/users/adampash/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/postlight/lux/milestones/1","html_url":"https://github.com/postlight/lux/milestones/1.0","labels_url":"https://api.github.com/repos/postlight/lux/milestones/1/labels","id":1848381,"number":1,"title":"1.0","description":"","creator":{"login":"zacharygolba","id":7378772,"avatar_url":"https://avatars.githubusercontent.com/u/7378772?v=3","gravatar_id":"","url":"https://api.github.com/users/zacharygolba","html_url":"https://github.com/zacharygolba","followers_url":"https://api.github.com/users/zacharygolba/followers","following_url":"https://api.github.com/users/zacharygolba/following{/other_user}","gists_url":"https://api.github.com/users/zacharygolba/gists{/gist_id}","starred_url":"https://api.github.com/users/zacharygolba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacharygolba/subscriptions","organizations_url":"https://api.github.com/users/zacharygolba/orgs","repos_url":"https://api.github.com/users/zacharygolba/repos","events_url":"https://api.github.com/users/zacharygolba/events{/privacy}","received_events_url":"https://api.github.com/users/zacharygolba/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2016-06-25T18:09:36Z","updated_at":"2016-08-04T13:48:54Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-08-03T14:54:35Z","updated_at":"2016-08-04T13:48:54Z","closed_at":"2016-08-04T13:48:53Z","body":"We should add a simple way of generating a reusable middleware function via the command line.\r\n\r\n`lux g middleware set-some-headers` should result in the file `./app/middleware/set-cors-headers.js` being created with the following contents:\r\n\r\n```javascript\r\nexport default function setSomeHeaders(/*request, response*/) {\r\n\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"adampash"}}