{"action":"created","issue":{"url":"https://api.github.com/repos/tompave/fun_with_flags_ui/issues/6","repository_url":"https://api.github.com/repos/tompave/fun_with_flags_ui","labels_url":"https://api.github.com/repos/tompave/fun_with_flags_ui/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/tompave/fun_with_flags_ui/issues/6/comments","events_url":"https://api.github.com/repos/tompave/fun_with_flags_ui/issues/6/events","html_url":"https://github.com/tompave/fun_with_flags_ui/pull/6","id":365472054,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MzgzOTgx","number":6,"title":"Adds protect from forgery to non-static routes","user":{"login":"aturkewi","id":13033515,"node_id":"MDQ6VXNlcjEzMDMzNTE1","avatar_url":"https://avatars2.githubusercontent.com/u/13033515?v=4","gravatar_id":"","url":"https://api.github.com/users/aturkewi","html_url":"https://github.com/aturkewi","followers_url":"https://api.github.com/users/aturkewi/followers","following_url":"https://api.github.com/users/aturkewi/following{/other_user}","gists_url":"https://api.github.com/users/aturkewi/gists{/gist_id}","starred_url":"https://api.github.com/users/aturkewi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturkewi/subscriptions","organizations_url":"https://api.github.com/users/aturkewi/orgs","repos_url":"https://api.github.com/users/aturkewi/repos","events_url":"https://api.github.com/users/aturkewi/events{/privacy}","received_events_url":"https://api.github.com/users/aturkewi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-01T13:52:24Z","updated_at":"2018-10-21T01:07:52Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/tompave/fun_with_flags_ui/pulls/6","html_url":"https://github.com/tompave/fun_with_flags_ui/pull/6","diff_url":"https://github.com/tompave/fun_with_flags_ui/pull/6.diff","patch_url":"https://github.com/tompave/fun_with_flags_ui/pull/6.patch"},"body":"Closes issue #5 \r\n\r\nMoved the `protect_from_forgery` plug into this package so that we can add it to all routes _except_ the static routes. This will allow the front end to make a get request for the JS file and not get denied.\r\n\r\nI also updated the readme to indicate that adding `protect_from_forgery` around these routes is no longer needed. \r\n\r\nI don't _love_ this solution, but it's the best solution I can come up with right now. I'm happy to make changes if there are thoughts on better ways to handle this. "},"comment":{"url":"https://api.github.com/repos/tompave/fun_with_flags_ui/issues/comments/431630116","html_url":"https://github.com/tompave/fun_with_flags_ui/pull/6#issuecomment-431630116","issue_url":"https://api.github.com/repos/tompave/fun_with_flags_ui/issues/6","id":431630116,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTYzMDExNg==","user":{"login":"tompave","id":2141406,"node_id":"MDQ6VXNlcjIxNDE0MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/2141406?v=4","gravatar_id":"","url":"https://api.github.com/users/tompave","html_url":"https://github.com/tompave","followers_url":"https://api.github.com/users/tompave/followers","following_url":"https://api.github.com/users/tompave/following{/other_user}","gists_url":"https://api.github.com/users/tompave/gists{/gist_id}","starred_url":"https://api.github.com/users/tompave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tompave/subscriptions","organizations_url":"https://api.github.com/users/tompave/orgs","repos_url":"https://api.github.com/users/tompave/repos","events_url":"https://api.github.com/users/tompave/events{/privacy}","received_events_url":"https://api.github.com/users/tompave/received_events","type":"User","site_admin":false},"created_at":"2018-10-21T01:07:52Z","updated_at":"2018-10-21T01:07:52Z","author_association":"OWNER","body":"Thank you so much @aturkewi ❤️\r\nGreat work!\r\n\r\nI'll release a new version in the next few days."}}
{"actor":{"display_login":"tompave"}}