{"action":"opened","issue":{"url":"https://api.github.com/repos/tiagoengel/phoenix-jsroutes/issues/6","repository_url":"https://api.github.com/repos/tiagoengel/phoenix-jsroutes","labels_url":"https://api.github.com/repos/tiagoengel/phoenix-jsroutes/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/tiagoengel/phoenix-jsroutes/issues/6/comments","events_url":"https://api.github.com/repos/tiagoengel/phoenix-jsroutes/issues/6/events","html_url":"https://github.com/tiagoengel/phoenix-jsroutes/issues/6","id":182578893,"number":6,"title":"Get the template from a configuration","user":{"login":"tiagoengel","id":1457263,"avatar_url":"https://avatars.githubusercontent.com/u/1457263?v=3","gravatar_id":"","url":"https://api.github.com/users/tiagoengel","html_url":"https://github.com/tiagoengel","followers_url":"https://api.github.com/users/tiagoengel/followers","following_url":"https://api.github.com/users/tiagoengel/following{/other_user}","gists_url":"https://api.github.com/users/tiagoengel/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagoengel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagoengel/subscriptions","organizations_url":"https://api.github.com/users/tiagoengel/orgs","repos_url":"https://api.github.com/users/tiagoengel/repos","events_url":"https://api.github.com/users/tiagoengel/events{/privacy}","received_events_url":"https://api.github.com/users/tiagoengel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T16:59:20Z","updated_at":"2016-10-12T16:59:20Z","closed_at":null,"body":"Move the function body generation to a separated template and add a configuration to change this template.\r\n\r\nThis will allow users to change what the router functions returns which will be very helpful in situations where the http api used expects something different than a string as the path.\r\n\r\n# Example:\r\nUsing jquey ajax\r\n\r\n```\r\nlet userUpdate = routes.userUpdate(1); // {method: \"POST\", url: \"/users/1\"}\r\n$.ajax(userUpdate)\r\n```javascript\r\n"}}
{"actor":{"display_login":"tiagoengel"}}